http

package
v0.0.0-...-e55081e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotAcceptableReason    = "NOT_ACCEPTABLE"
	MethodNotAllowedReason = "METHOD_NOT_ALLOWED"
	NotFoundReason         = "NOT_FOUND"
	CODECReason            = "CODEC"
)
View Source
const (
	SupportPackageIsVersion1 = true
)

Variables

View Source
var (
	SetOperation = http.SetOperation
	NewServer    = http.NewServer
)

Functions

This section is empty.

Types

type CallOption

type CallOption = http.CallOption

type Config

type Config struct {
	Logger  *log.Logger
	Address string
	Timeout time.Duration
}

func (*Config) Build

func (c *Config) Build(m ...middleware.Middleware) []ServerOption

func (*Config) ErrorEncoder

func (c *Config) ErrorEncoder(w http.ResponseWriter, r *http.Request, err error)

func (*Config) MethodNotAllowedHandler

func (c *Config) MethodNotAllowedHandler() nethttp.Handler

func (*Config) NotFoundHandler

func (c *Config) NotFoundHandler() nethttp.Handler

func (*Config) RequestDecoder

func (c *Config) RequestDecoder(r *http.Request, v any) error

func (*Config) ResponseEncoder

func (c *Config) ResponseEncoder(w http.ResponseWriter, r *http.Request, v any) error

type Context

type Context = http.Context

type Server

type Server = http.Server

type ServerOption

type ServerOption = http.ServerOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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