response

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: BSD-3-Clause Imports: 2 Imported by: 1

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 (r Response) BadRequest(reason string)

func (Response) Forbidden

func (r Response) Forbidden(reason string)

func (Response) InternalServerError

func (r Response) InternalServerError(reason string)

func (Response) JSON

func (r Response) JSON(obj any)

func (Response) NotFound added in v0.0.23

func (r Response) NotFound()

func (Response) NotModified added in v0.0.23

func (r Response) NotModified()

func (Response) OK added in v0.0.23

func (r Response) OK()

func (Response) Redirect

func (r Response) Redirect(req *http.Request, url string)

func (Response) Text added in v0.0.23

func (r Response) Text(text string)

func (Response) TooManyRequests

func (r Response) TooManyRequests(reason string)

func (Response) Unauthorized

func (r Response) Unauthorized(reason string)

Jump to

Keyboard shortcuts

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