response

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT 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 {
	*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) Forbidden

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

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