adaptor

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 17 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToHertzRequest added in v0.5.0

func CopyToHertzRequest(req *http.Request, hreq *protocol.Request) error

CopyToHertzRequest copy uri, host, method, protocol, header, but share body reader from http.Request to protocol.Request.

func GetCompatRequest deprecated

func GetCompatRequest(req *protocol.Request) (*http.Request, error)

GetCompatRequest only support basic function of Request, not for all.

Deprecated: use HertzHandler instead

func GetCompatResponseWriter deprecated

func GetCompatResponseWriter(resp *protocol.Response) http.ResponseWriter

GetCompatResponseWriter only support basic function of ResponseWriter, not for all.

Deprecated: use HertzHandler instead

func HertzHandler added in v0.10.0

func HertzHandler(h http.Handler) app.HandlerFunc

HertzHandler converts a http.Handler to an app.HandlerFunc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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