Documentation ¶
Index ¶
Constants ¶
View Source
const StatusClientClosedRequest = 499
StatusClientClosedRequest non-standard HTTP status code for client disconnection.
View Source
const StatusClientClosedRequestText = "Client Closed Request"
StatusClientClosedRequestText non-standard HTTP status for client disconnection.
Variables ¶
This section is empty.
Functions ¶
func NewLoadBalancerHandler
deprecated
func NewLoadBalancerHandler(reverseProxy *httputil.ReverseProxy, servers []string, logrusLogger *logrus.Logger, verbose bool) (func(http.ResponseWriter, *http.Request), error)
NewLoadBalancerHandler
Deprecated: 详见 _info.md
@param reverseProxy 可以为nil(将采用默认值) @param servers e.g. []string{"http://localhost:8001", "http://localhost:8002"} @param logrusLogger 可以为nil,但不建议这么干,因为会无输出 @param verbose true: 详细的信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.