response

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: May 16, 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 interface{})

func (Response) Redirect

func (r Response) Redirect(req *http.Request, url 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