Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendJSONResponse ¶
func SendJSONResponse(ctx *fasthttp.RequestCtx, json interface{})
SendJSONResponse sends a JSON encoded response to the client along with an HTTP status code of 200 OK.
func SendTextResponse ¶
func SendTextResponse(ctx *fasthttp.RequestCtx, msg string, code int)
SendTextResponse sends a plaintext response to the client along with an HTTP status code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.