Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRoundTripper ¶
func NewRoundTripper(opts ...Option) http.RoundTripper
func Write ¶
func Write(w http.ResponseWriter, contentType string, status int, body string)
Write sets the status and body on a http ResponseWriter
func WriteBadRequestError ¶
func WriteBadRequestError(w http.ResponseWriter, err error)
WriteBadRequestError sets a 400 status code
func WriteInternalServerError ¶
func WriteInternalServerError(w http.ResponseWriter, err error)
WriteInternalServerError sets a 500 status code
Types ¶
Click to show internal directories.
Click to hide internal directories.