Help us shape the future of Go! Take the 2026 Go Developer Survey

adaptor

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 19 Imported by: 35

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