Documentation ¶
Overview ¶
Package proxy_http
@author: xwc1125
Package proxy_http
@author: xwc1125
Package proxy_http
@author: xwc1125
Index ¶
- Variables
- type Option
- func WithCompressionLevel(compressionLevel int) Option
- func WithDisablePathNormalizing(isDisablePathNormalizing bool) Option
- func WithPlugins(plugins ...plugin.Plugin) Option
- func WithTLS(certFile, keyFile string) Option
- func WithTLSConfig(config *tls.Config) Option
- func WithTimeout(d time.Duration) Option
- type Proxy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultUpgrader specifies the parameters for upgrading an HTTP // connection to a WebSocket connection. DefaultUpgrader = &websocket.FastHTTPUpgrader{ ReadBufferSize: 1024, WriteBufferSize: 1024, } // DefaultDialer is a dialer with all fields set to the default zero values. DefaultDialer = websocket.DefaultDialer )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option to define all options to reverse http proxy.
func WithCompressionLevel ¶
WithCompressionLevel
func WithDisablePathNormalizing ¶
WithDisablePathNormalizing sets whether disable path normalizing.
func WithPlugins ¶
WithPlugins sets whether disable path normalizing.
func WithTLS ¶
WithTLS build tls.Config with server certFile and keyFile. tlsConfig is nil as default
func WithTLSConfig ¶
func WithTimeout ¶
WithTimeout specify the timeout of each request
Source Files ¶
Click to show internal directories.
Click to hide internal directories.