Documentation
¶
Overview ¶
Package hzadaptor provides utilities for adapting between Hertz protocol types and Go's standard library types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToHTTPRequest ¶
ToHTTPRequest converts a Hertz protocol.Request to a standard library http.Request. This is designed for client-side use where we need to send a request using net/http.
Note: The body is read from the request, so for streaming bodies this should be called only once. The returned request will have the body set appropriately.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.