Versions in this module Expand all Collapse all v1 v1.1.1 Oct 14, 2017 GO-2025-3554 GO-2025-3554: Reflected XSS in go-httpbin due to unrestricted client control over Content-Type in github.com/mccutchen/go-httpbin v1.1.0 Oct 14, 2017 GO-2025-3554 GO-2025-3554: Reflected XSS in go-httpbin due to unrestricted client control over Content-Type in github.com/mccutchen/go-httpbin v1.0.0 Jun 29, 2017 GO-2025-3554 GO-2025-3554: Reflected XSS in go-httpbin due to unrestricted client control over Content-Type in github.com/mccutchen/go-httpbin Changes in this version + const DefaultMaxDuration + const DefaultMaxMemory + type HTTPBin struct + func NewHTTPBin() *HTTPBin + func NewHTTPBinWithOptions(options *Options) *HTTPBin + func (h *HTTPBin) AbsoluteRedirect(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) BasicAuth(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Bytes(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Cache(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) CacheControl(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Cookies(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Deflate(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Delay(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) DeleteCookies(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Deny(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) DigestAuth(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Drip(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) ETag(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) FormsPost(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Get(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Gzip(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) HTML(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Handler() http.Handler + func (h *HTTPBin) Headers(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) HiddenBasicAuth(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) IP(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Image(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) ImageAccept(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Index(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Links(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Range(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Redirect(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) RedirectTo(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) RelativeRedirect(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) RequestWithBody(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) ResponseHeaders(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Robots(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) SetCookies(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Status(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) Stream(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) StreamBytes(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) UTF8(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) UserAgent(w http.ResponseWriter, r *http.Request) + func (h *HTTPBin) XML(w http.ResponseWriter, r *http.Request) + type Options struct + MaxDuration time.Duration + MaxMemory int64 Other modules containing this package github.com/mccutchen/go-httpbin/v2