MCPcopy
hub / github.com/gofiber/fiber / SendStatus

Method SendStatus

res_interface_gen.go:132–132  ·  view source on GitHub ↗

SendStatus sets the HTTP status code and if the response body is empty, it sets the correct status message in the body.

(status int)

Source from the content-addressed store, hash-verified

130 // SendStatus sets the HTTP status code and if the response body is empty,
131 // it sets the correct status message in the body.
132 SendStatus(status int) error
133 // SendString sets the HTTP response body for string types.
134 // This means no type assertion, recommended for faster performance
135 SendString(body string) error

Callers 15

Test_Hook_OnGroup_MountFunction · 0.65
BodyMethod · 0.65
defaultRequestHandlerMethod · 0.65
customRequestHandlerMethod · 0.65
Test_App_BodyLimit_ZeroFunction · 0.65
Test_App_ChainingFunction · 0.65
Test_App_OrderFunction · 0.65
Test_App_Route_NamingFunction · 0.65

Implementers 1

Calls

no outgoing calls