Documentation ¶
Overview ¶
Generic HTTP responses that aren't specific to any particular type of request
Index ¶
- func CopyToBody(client io.Writer, bodyReader io.Reader)
- func RespondWithAllowHeader(client io.Writer, status Status, allowedMethods []string)
- func WriteBody(client io.Writer, body string)
- func WriteContentLengthHeader(client io.Writer, numBytes int)
- func WriteContentTypeHeader(client io.Writer, value string)
- func WriteEndOfMessageHeader(client io.Writer)
- func WriteHeader(client io.Writer, name string, value string)
- func WriteStatus(client io.Writer, status Status)
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondWithAllowHeader ¶
func WriteContentTypeHeader ¶
func WriteEndOfMessageHeader ¶
func WriteStatus ¶
Types ¶
Directories ¶
Path | Synopsis |
---|---|
HTTP 4xx Client Error responses from RFC 7231, Section 6.5
|
HTTP 4xx Client Error responses from RFC 7231, Section 6.5 |
HTTP 5xx Server Error responses from RFC 7231, Section 6.6
|
HTTP 5xx Server Error responses from RFC 7231, Section 6.6 |
HTTP 2xx Successful responses from RFC 7231, Section 6.3
|
HTTP 2xx Successful responses from RFC 7231, Section 6.3 |
Click to show internal directories.
Click to hide internal directories.