diff --git a/httpbin/httpbin.go b/httpbin/httpbin.go index 7f5fa9e0..921f5651 100644 --- a/httpbin/httpbin.go +++ b/httpbin/httpbin.go @@ -155,6 +155,9 @@ func (h *HTTPBin) Handler() http.Handler { mux.HandleFunc("/absolute-redirect/", h.AbsoluteRedirect) mux.HandleFunc("/redirect-to", h.RedirectTo) + mux.HandleFunc("/anything/", h.RequestWithBody) + mux.HandleFunc("/anything", h.RequestWithBody) + mux.HandleFunc("/cookies", h.Cookies) mux.HandleFunc("/cookies/set", h.SetCookies) mux.HandleFunc("/cookies/delete", h.DeleteCookies) diff --git a/httpbin/static/index.html b/httpbin/static/index.html index a4fa3c00..f19820ba 100644 --- a/httpbin/static/index.html +++ b/httpbin/static/index.html @@ -60,6 +60,7 @@
/
This page./absolute-redirect/:n
302 Absolute redirects n times./anything/:anything
Returns anything that is passed to request./base64/:value
Decodes a Base64 encoded string./base64/decode/:value
Explicit URL for decoding a Base64 encoded string./base64/encode/:value
Encodes a string into Base64.