Documentation
¶
Index ¶
- func CSSResponse(w http.ResponseWriter, r *http.Request, body string)
- func CSSResponseF(w http.ResponseWriter, r *http.Request, ...)
- func GzipCSSResponse(w http.ResponseWriter, r *http.Request, body string)
- func GzipCSSResponseF(w http.ResponseWriter, r *http.Request, ...)
- func GzipHTMLResponse(w http.ResponseWriter, r *http.Request, body string)
- func GzipHTMLResponseF(w http.ResponseWriter, r *http.Request, ...)
- func GzipJSONResponse(w http.ResponseWriter, r *http.Request, body string)
- func GzipJSONResponseF(w http.ResponseWriter, r *http.Request, ...)
- func GzipJSResponse(w http.ResponseWriter, r *http.Request, body string)
- func GzipJSResponseF(w http.ResponseWriter, r *http.Request, ...)
- func GzipXMLResponse(w http.ResponseWriter, r *http.Request, body string)
- func GzipXMLResponseF(w http.ResponseWriter, r *http.Request, ...)
- func HTMLResponse(w http.ResponseWriter, r *http.Request, body string)
- func HTMLResponseF(w http.ResponseWriter, r *http.Request, ...)
- func JSONResponse(w http.ResponseWriter, r *http.Request, body string)
- func JSONResponseF(w http.ResponseWriter, r *http.Request, ...)
- func JSResponse(w http.ResponseWriter, r *http.Request, body string)
- func JSResponseF(w http.ResponseWriter, r *http.Request, ...)
- func XMLResponse(w http.ResponseWriter, r *http.Request, body string)
- func XMLResponseF(w http.ResponseWriter, r *http.Request, ...)
- type HTMLHandler
- type JSONHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSSResponse ¶
func CSSResponse(w http.ResponseWriter, r *http.Request, body string)
CSSResponse - responds with the CSS body
func CSSResponseF ¶
func CSSResponseF(w http.ResponseWriter, r *http.Request, f func(w http.ResponseWriter, r *http.Request) string)
CSSResponseF - responds with the result from a string returning function
func GzipCSSResponse ¶
func GzipCSSResponse(w http.ResponseWriter, r *http.Request, body string)
GzipCSSResponse - responds with the CSS body
func GzipCSSResponseF ¶
func GzipCSSResponseF(w http.ResponseWriter, r *http.Request, f func(w http.ResponseWriter, r *http.Request) string)
GzipCSSResponse - responds with the result from a string returning function
func GzipHTMLResponse ¶
func GzipHTMLResponse(w http.ResponseWriter, r *http.Request, body string)
GzipHTMLResponse - responds with the HTML body
func GzipHTMLResponseF ¶
func GzipHTMLResponseF(w http.ResponseWriter, r *http.Request, f func(w http.ResponseWriter, r *http.Request) string)
GzipHTMLResponseF - responds with the result from a string returning function
func GzipJSONResponse ¶
func GzipJSONResponse(w http.ResponseWriter, r *http.Request, body string)
GzipJSONResponse - responds with the JSON body
func GzipJSONResponseF ¶
func GzipJSONResponseF(w http.ResponseWriter, r *http.Request, f func(w http.ResponseWriter, r *http.Request) string)
GzipJSONResponse - responds with the result from a string returning function
func GzipJSResponse ¶
func GzipJSResponse(w http.ResponseWriter, r *http.Request, body string)
GzipJSResponse - responds with the JS body
func GzipJSResponseF ¶
func GzipJSResponseF(w http.ResponseWriter, r *http.Request, f func(w http.ResponseWriter, r *http.Request) string)
GzipJSResponse - responds with the result from a string returning function
func GzipXMLResponse ¶
func GzipXMLResponse(w http.ResponseWriter, r *http.Request, body string)
GzipXMLResponse - responds with the XML body
func GzipXMLResponseF ¶
func GzipXMLResponseF(w http.ResponseWriter, r *http.Request, f func(w http.ResponseWriter, r *http.Request) string)
GzipXMLResponse - responds with the result from a string returning function
func HTMLResponse ¶
func HTMLResponse(w http.ResponseWriter, r *http.Request, body string)
HTMLResponse - responds with the HTML body
func HTMLResponseF ¶
func HTMLResponseF(w http.ResponseWriter, r *http.Request, f func(w http.ResponseWriter, r *http.Request) string)
HTMLResponseF - responds with the result from a string returning function
func JSONResponse ¶
func JSONResponse(w http.ResponseWriter, r *http.Request, body string)
JSONResponseF - responds with the JSON body
func JSONResponseF ¶
func JSONResponseF(w http.ResponseWriter, r *http.Request, f func(w http.ResponseWriter, r *http.Request) string)
JSONResponseF - responds with the result from a string returning function
func JSResponse ¶
func JSResponse(w http.ResponseWriter, r *http.Request, body string)
JSResponse - responds with the JS body
func JSResponseF ¶
func JSResponseF(w http.ResponseWriter, r *http.Request, f func(w http.ResponseWriter, r *http.Request) string)
JSResponseF - responds with the result from a string returning function
func XMLResponse ¶
func XMLResponse(w http.ResponseWriter, r *http.Request, body string)
XMLResponse - responds with the result from a string returning function
func XMLResponseF ¶
func XMLResponseF(w http.ResponseWriter, r *http.Request, f func(w http.ResponseWriter, r *http.Request) string)
XMLResponseF - responds with the result from a string returning function
Types ¶
type HTMLHandler ¶ added in v0.2.0
type HTMLHandler func(w http.ResponseWriter, r *http.Request) string
func (HTMLHandler) ServeHTTP ¶ added in v0.2.0
func (h HTMLHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type JSONHandler ¶ added in v0.2.0
type JSONHandler func(w http.ResponseWriter, r *http.Request) string
func (JSONHandler) ServeHTTP ¶ added in v0.2.0
func (h JSONHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)