response

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 4 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.

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