http_utils

package
v0.0.0-...-cc1fd88 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTTPRequestContextKey  requestContextKey = "http_request"
	HTTPResponseContextKey requestContextKey = "http_response"
)

Functions

func GetHTTPRequest

func GetHTTPRequest(ctx context.Context) *http.Request

func GetHTTPResponse

func GetHTTPResponse(ctx context.Context) http.ResponseWriter

func MakeFileHeader

func MakeFileHeader(name string, dateBytes []byte) (*multipart.FileHeader, error)

func WithHTTPResReqContext

func WithHTTPResReqContext(ctx context.Context, req *http.Request, res http.ResponseWriter) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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