http405

package module
v0.0.0-...-b310b5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: MIT Imports: 6 Imported by: 0

README

go-http405

Package http405 provides tools for creating HTTP 405 responses, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-http405

GoDoc

Import

To import package http405 use import code like the following:

import "github.com/reiver/go-http405"

Installation

To install package http405 do the following:

GOPROXY=direct go get github.com/reiver/go-http405

Author

Package http405 was written by Charles Iliya Krempeaux

Documentation

Index

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 Serve

func Serve(responseWriter http.ResponseWriter, methods ...string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL