Documentation ¶
Index ¶
- func CopyHeader(dst, src http.Header)
- func MultiWrite(read io.ReadCloser, number int) []io.ReadCloser
- func NewEdgeServerHandler(config *config.LiteServerConfig, transportManager *transport.TransportManager, ...) (http.Handler, error)
- func WithRequestAccept(handler http.Handler) http.Handler
- type EdgeReverseProxy
- type EdgeServerHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyHeader ¶
func MultiWrite ¶ added in v0.6.0
func MultiWrite(read io.ReadCloser, number int) []io.ReadCloser
MultiWrite The ReadCloser object in the returned array needs to use multiple goroutines to read at the same time
func NewEdgeServerHandler ¶
func NewEdgeServerHandler(config *config.LiteServerConfig, transportManager *transport.TransportManager, cacheManager *cache.CacheManager, transportChannel <-chan string) (http.Handler, error)
Types ¶
type EdgeReverseProxy ¶
type EdgeReverseProxy struct {
// contains filtered or unexported fields
}
EdgeReverseProxy represents a real pair of http request and response
func NewEdgeReverseProxy ¶
func NewEdgeReverseProxy(transport *transport.EdgeTransport, backendUrl string, backendPort int, cacheManager *cache.CacheManager) *EdgeReverseProxy
func (*EdgeReverseProxy) ServeHTTP ¶
func (p *EdgeReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
type EdgeServerHandler ¶
type EdgeServerHandler struct {
// contains filtered or unexported fields
}
EdgeServerHandler is the real handler for each request
func (*EdgeServerHandler) ServeHTTP ¶
func (h *EdgeServerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.