package html
import "miniflux.app/http/response/html"
Index ¶
- func BadRequest(w http.ResponseWriter, r *http.Request, err error)
- func Forbidden(w http.ResponseWriter, r *http.Request)
- func NotFound(w http.ResponseWriter, r *http.Request)
- func OK(w http.ResponseWriter, r *http.Request, body interface{})
- func Redirect(w http.ResponseWriter, r *http.Request, uri string)
- func RequestedRangeNotSatisfiable(w http.ResponseWriter, r *http.Request, contentRange string)
- func ServerError(w http.ResponseWriter, r *http.Request, err error)
Functions ¶
func BadRequest ¶
func BadRequest(w http.ResponseWriter, r *http.Request, err error)
BadRequest sends a bad request error to the client.
func Forbidden ¶
func Forbidden(w http.ResponseWriter, r *http.Request)
Forbidden sends a forbidden error to the client.
func NotFound ¶
func NotFound(w http.ResponseWriter, r *http.Request)
NotFound sends a page not found error to the client.
func OK ¶
func OK(w http.ResponseWriter, r *http.Request, body interface{})
OK creates a new HTML response with a 200 status code.
func Redirect ¶
func Redirect(w http.ResponseWriter, r *http.Request, uri string)
Redirect redirects the user to another location.
func RequestedRangeNotSatisfiable ¶
func RequestedRangeNotSatisfiable(w http.ResponseWriter, r *http.Request, contentRange string)
RequestedRangeNotSatisfiable sends a range not satisfiable error to the client.
func ServerError ¶
func ServerError(w http.ResponseWriter, r *http.Request, err error)
ServerError sends an internal error to the client.
Source Files ¶
html.go
- Version
- v1.0.46 (latest)
- Published
- Jul 22, 2023
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 weeks ago –
Tools for package owners.