Skip to content

tama-go/sseproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

SSE supported reverse proxy

sseproxy is a SSE (Server-Sent Events) supported HTTP revese proxy.

sseproxy.Proxy keeps HTTP connections too long time, so it should be better to accept minimum connections.

Usage

It can be used just like httputil.NewSingleHostReverseProxy.

import (
	"net/http"
	"net/url"
	"github.com/tama-go/sseproxy"
)

u, _ := url.Parse("http://example.com")
p := sseproxy.New(u)
http.ListenAndServe(":8080", p)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages