Documentation
¶
Index ¶
- Constants
- func Created(responseWriter http.ResponseWriter, request *http.Request)
- func Serve(responseWriter http.ResponseWriter) error
- func ServeBytes(responseWriter http.ResponseWriter, bytes []byte) error
- func ServeLocation(responseWriter http.ResponseWriter, url string) error
- func ServeString(responseWriter http.ResponseWriter, value string) error
Constants ¶
View Source
const DefaultStatusText string = "Created"
View Source
const (
ErrNilHTTPResponseWriter = erorr.Error("http201: nil http-response-writer")
)
View Source
const (
StatusCode = http.StatusCreated
)
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve(responseWriter http.ResponseWriter) error
func ServeBytes ¶
func ServeBytes(responseWriter http.ResponseWriter, bytes []byte) error
func ServeLocation ¶
func ServeLocation(responseWriter http.ResponseWriter, url string) error
func ServeString ¶
func ServeString(responseWriter http.ResponseWriter, value string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.