adaptor

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToHertzRequest

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

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

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

func GetCompatResponseWriter

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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