http

package
v0.9.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRequestParser

type DefaultRequestParser struct {
}

func (*DefaultRequestParser) GetInput

func (rp *DefaultRequestParser) GetInput(rq any) ([]byte, error)

func (*DefaultRequestParser) GetSessionId

func (rp *DefaultRequestParser) GetSessionId(ctx context.Context, rq any) (string, error)

type HTTPRequestHandler

type HTTPRequestHandler struct {
	request.RequestHandler
}

HTTPRequestHandler implements the session handler for HTTP

func NewHTTPRequestHandler

func NewHTTPRequestHandler(h request.RequestHandler) *HTTPRequestHandler

func (*HTTPRequestHandler) ServeHTTP

func (hh *HTTPRequestHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*HTTPRequestHandler) WriteError

func (f *HTTPRequestHandler) WriteError(w http.ResponseWriter, code int, err error)

Jump to

Keyboard shortcuts

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