Documentation ¶
Index ¶
- func GetDebug(ctx *fasthttp.RequestCtx) bool
- func GetFeatTag() bool
- func GetPublicKey(ctx *fasthttp.RequestCtx) string
- func GetRequestID(ctx *fasthttp.RequestCtx) string
- func GetResponseCode(ctx *fasthttp.RequestCtx) int
- func SetDebug(ctx *fasthttp.RequestCtx, debug bool)
- func SetRandomRequestID(ctx *fasthttp.RequestCtx)
- func SetRequestID(ctx *fasthttp.RequestCtx, requestID string)
- func SetResponseCode(ctx *fasthttp.RequestCtx, code int)
- type DebugKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDebug ¶
func GetDebug(ctx *fasthttp.RequestCtx) bool
GetDebug will get debug mode from a http request and return it
func GetFeatTag ¶
func GetFeatTag() bool
func GetPublicKey ¶
func GetPublicKey(ctx *fasthttp.RequestCtx) string
GetPublicKey returns public key from the context
func GetRequestID ¶
func GetRequestID(ctx *fasthttp.RequestCtx) string
GetRequestID will get reqID from a http request and return it as a string
func GetResponseCode ¶
func GetResponseCode(ctx *fasthttp.RequestCtx) int
GetResponseCode returns http response status code from the context
func SetDebug ¶
func SetDebug(ctx *fasthttp.RequestCtx, debug bool)
SetDebug will set debug mode to a http request
func SetRandomRequestID ¶
func SetRandomRequestID(ctx *fasthttp.RequestCtx)
SetRandomRequestID will attach a brand new request ID to a http request
func SetRequestID ¶
func SetRequestID(ctx *fasthttp.RequestCtx, requestID string)
func SetResponseCode ¶
func SetResponseCode(ctx *fasthttp.RequestCtx, code int)
SetResponseCode sets http response status code on the context
Types ¶
Click to show internal directories.
Click to hide internal directories.