response

package
v1.3.41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 6 Imported by: 0

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 SendNothing

func SendNothing(ctx *fasthttp.RequestCtx)

SendNothing sends 204 No Content. TODO: remove in the future if not needed.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL