Documentation ¶
Index ¶
- Constants
- func GetBool(p string, r *http.Request) bool
- func GetFloat(p string, r *http.Request) float64
- func GetInt(p string, r *http.Request) int
- func GetParameterBool(p string, r *http.Request) bool
- func GetParameterFloat(p string, r *http.Request) float64
- func GetParameterInt(p string, r *http.Request) int
- func GetParameterString(p string, r *http.Request) string
- func GetString(p string, r *http.Request) string
- func ParseBody(r *http.Request, body *interface{}) error
- func ReadBody(r *http.Request) (body []byte, err error)
- func Send(w http.ResponseWriter, body interface{})
- func SendError(w http.ResponseWriter, err error)
- type Header
- type Parameter
- type Request
- type Response
Constants ¶
View Source
const ( ContentJS = "application/javascript" ContentOGG = "application/ogg" ContentPDF = "application/pdf" ContentXHTML = "application/xhtml+xml" ContentJSON = "application/json" ContentXML = "application/xml" ContentZIP = "application/zip" )
Variables ¶
This section is empty.
Functions ¶
func Send ¶
func Send(w http.ResponseWriter, body interface{})
func SendError ¶
func SendError(w http.ResponseWriter, err error)
Types ¶
Click to show internal directories.
Click to hide internal directories.