httputil

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderUserAgent = "User-Agent"
	HeaderXUser     = "X-User"
)

Variables

This section is empty.

Functions

func GetPathParamsFromContext

func GetPathParamsFromContext(ctx context.Context) (map[string]string, bool)

func GetRequestBodyFromContext

func GetRequestBodyFromContext(ctx context.Context) ([]byte, bool)

func SetContextWithPathParams

func SetContextWithPathParams(ctx context.Context, params map[string]string) context.Context

func SetContextWithRequestBody

func SetContextWithRequestBody(ctx context.Context, body []byte) 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