Documentation
¶
Index ¶
- type Response
- func (ctx Response) Accepted(body ...any) error
- func (ctx Response) BadRequest(body ...any) error
- func (ctx Response) Conflict(body ...any) error
- func (ctx Response) Created(body ...any) error
- func (ctx Response) Forbidden(body ...any) error
- func (ctx Response) InternalServerError(body ...any) error
- func (ctx Response) NoContent() error
- func (ctx Response) NotFound(body ...any) error
- func (ctx Response) Ok(body ...any) error
- func (r *Response) ToHttp() http.ResponseWriter
- func (ctx Response) Unauthorized(body ...any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
func New ¶
func New(w http.ResponseWriter) *Response
func (Response) BadRequest ¶
func (Response) InternalServerError ¶
func (*Response) ToHttp ¶
func (r *Response) ToHttp() http.ResponseWriter
func (Response) Unauthorized ¶
Click to show internal directories.
Click to hide internal directories.