Documentation
¶
Index ¶
- func AddHeader(header http.Header, key string, values []string) http.Header
- func AddXForwardedFor(r *http.Request)
- func CloneRequest(lr *http.Request, url string) (*http.Request, error)
- func CopyHeaders(lr *http.Request, rr *http.Request)
- func ForwardTo(lw http.ResponseWriter, lr *http.Request, url string) error
- func ForwardToIntercept(lw http.ResponseWriter, lr *http.Request, url string, ...) error
- func GetAddOnXForwardedFor(r *http.Request) ([]string, bool)
- func GetRemoteIP(r *http.Request) ([]string, error)
- func GetValue(r *http.Request, key string) ([]string, bool)
- func GetXForwardedFor(r *http.Request) ([]string, bool)
- func GetXRealIP(r *http.Request) ([]string, bool)
- func HeaderToMap(header http.Header) map[string]string
- func ParseRequestBody[T interface{}](req *http.Request) (*T, error)
- func ParseResponseBody[T any](resp *http.Response) (*T, error)
- func ParseSchema(req *http.Request) string
- func ParseSchemaByTLS(tls *tls.ConnectionState) string
- func ReverseProxy(lw http.ResponseWriter, lr *http.Request, uri string) error
- func WriteResponse(w http.ResponseWriter, resp *http.Response)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddXForwardedFor ¶
func ForwardToIntercept ¶
func ParseRequestBody ¶
func ParseSchema ¶
func ParseSchemaByTLS ¶
func ParseSchemaByTLS(tls *tls.ConnectionState) string
func ReverseProxy ¶
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, resp *http.Response)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.