Documentation ¶
Index ¶
- Constants
- func GetContextBoolInfoFromRequest(r *http.Request, key string) bool
- func GetContextInfoMap(r *http.Request) *sync.Map
- func GetContextIntInfoFromRequest(r *http.Request, key string) int
- func GetContextStringInfoFromRequest(r *http.Request, key string) string
- func GetRequestBytes(r *http.Request) []byte
- func GetRequestHTTPS(r *http.Request) bool
- func SetContextValueInfoFromRequest(r *http.Request, key string, value any)
- func SetRequestBytes(r *http.Request, bytes []byte)
- func SetRequestHTTPS(r *http.Request, b bool)
Constants ¶
View Source
const ( REQUEST_CONTEXT_KEY_IsHttps = "isHttps" REQUEST_CONTEXT_KEY_IsDropped = "isRequestDropped" RESPONSE_CONTEXT_KEY_IsDropped = "isResponseDropped" RESPONSE_CONTEXT_NOLOG = "isResponseNoLog" REQUEST_CONTEXT_KEY_AutoFoward = "isRequestAutoForward" RESPONSE_CONTEXT_KEY_AutoFoward = "isResponseAutoForward" REQUEST_CONTEXT_KEY_Url = "url" REQUEST_CONTEXT_KEY_IsModified = "requestIsModified" REQUEST_CONTEXT_KEY_ModifiedBy = "requestIsModifiedBy" REQUEST_CONTEXT_KEY_Modified = "requestModified" REQUEST_CONTEXT_KEY_RequestIsFiltered = "requestIsFiltered" RESPONSE_CONTEXT_KEY_ResponseIsFiltered = "responseIsFiltered" REQUEST_CONTEXT_KEY_RequestIsHijacked = "requestIsHijacked" REQUEST_CONTEXT_KEY_RequestBytes = "requestBytes" REQUEST_CONTEXT_KEY_ResponseBytes = "responseBytes" REQUEST_CONTEXT_KEY_RequestIsStrippedGzip = "requestIsStrippedGzip" RESPONSE_CONTEXT_KEY_ShouldBeHijackedFromRequest = "shouldBeHijackedFromRequest" REQUEST_CONTEXT_KEY_ConnectedTo = "connectedTo" REQUEST_CONTEXT_KEY_ConnectedToPort = "connectedToPort" REQUEST_CONTEXT_KEY_ConnectedToHost = "connectedToHost" )
View Source
const REQUEST_CONTEXT_INFOMAP = "InfoMap"
Variables ¶
This section is empty.
Functions ¶
func GetRequestBytes ¶
func GetRequestHTTPS ¶
func SetRequestBytes ¶
func SetRequestHTTPS ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.