response

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	// contains filtered or unexported fields
}

func New

func (Response) BadRequest

func (res Response) BadRequest(reasons ...string)

func (Response) Error added in v0.0.48

func (res Response) Error(status int, reasons ...string)

func (Response) Forbidden

func (res Response) Forbidden(reasons ...string)

func (Response) HTML added in v0.0.48

func (res Response) HTML(html string)

func (Response) InternalServerError

func (res Response) InternalServerError(reasons ...string)

func (Response) JSON

func (res Response) JSON(obj any)

func (Response) MethodNotAllowed added in v0.0.48

func (res Response) MethodNotAllowed(reasons ...string)

func (Response) NotFound added in v0.0.23

func (res Response) NotFound()

func (Response) NotModified added in v0.0.23

func (res Response) NotModified()

func (Response) OK added in v0.0.23

func (res Response) OK()

func (Response) OKText added in v0.0.48

func (res Response) OKText()

func (Response) SetHeader added in v0.0.35

func (res Response) SetHeader(key, value string)

func (Response) SetStatus added in v0.0.48

func (res Response) SetStatus(status int)

func (Response) Text added in v0.0.23

func (res Response) Text(text string)

func (Response) TooManyRequests

func (res Response) TooManyRequests(reasons ...string)

func (Response) Unauthorized

func (res Response) Unauthorized(reasons ...string)

Jump to

Keyboard shortcuts

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