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