Documentation
¶
Index ¶
- type OK
- type Response
- func (r Response) BadRequest(reason string)
- func (r Response) Forbidden(reason string)
- func (r Response) InternalServerError(reason string)
- func (r Response) JSON(obj any)
- func (r Response) NotFound()
- func (r Response) NotModified()
- func (r Response) OK()
- func (r Response) Redirect(req *http.Request, url string)
- func (r Response) SetHeader(key, value string)
- func (r Response) Text(text string)
- func (r Response) TooManyRequests(reason string)
- func (r Response) Unauthorized(reason string)
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 New(w http.ResponseWriter) Response
func (Response) BadRequest ¶
func (Response) InternalServerError ¶
func (Response) NotModified ¶ added in v0.0.23
func (r Response) NotModified()
func (Response) TooManyRequests ¶
func (Response) Unauthorized ¶
Click to show internal directories.
Click to hide internal directories.