response

package
v0.4.32 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 6 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 {
	*ngamux.Response
}

func New

func (Response) Accepted

func (ctx Response) Accepted(body ...any) error

func (Response) BadRequest

func (ctx Response) BadRequest(body ...any) error

func (Response) Conflict

func (ctx Response) Conflict(body ...any) error

func (Response) Created

func (ctx Response) Created(body ...any) error

func (*Response) Download added in v0.4.27

func (r *Response) Download(filepath string)

func (Response) Forbidden

func (ctx Response) Forbidden(body ...any) error

func (*Response) Header added in v0.4.27

func (r *Response) Header(kv ...string) *Response

func (Response) InternalServerError

func (ctx Response) InternalServerError(body ...any) error

func (Response) NoContent

func (ctx Response) NoContent() error

func (Response) NotFound

func (ctx Response) NotFound(body ...any) error

func (Response) Ok

func (ctx Response) Ok(body ...any) error

func (*Response) ToHttp

func (r *Response) ToHttp() http.ResponseWriter

func (Response) Unauthorized

func (ctx Response) Unauthorized(body ...any) error

Jump to

Keyboard shortcuts

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