headers

package
v2.0.0-...-1c13370 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToRequestHeaders

func AddToRequestHeaders(ctx context.Context, key string, value string) context.Context

AddToRequestHeaders adds a request header to headers passed in through context

func AddToResponseHeaders

func AddToResponseHeaders(ctx context.Context, key string, value string) context.Context

AddToResponseHeaders adds a response header to headers that will returned through context

func RequestHeadersFromContext

func RequestHeadersFromContext(ctx context.Context) http.Header

RequestHeadersFromContext returns all request headers passed in through context

func ResponseHeadersFromContext

func ResponseHeadersFromContext(ctx context.Context) http.Header

ResponseHeadersFromContext returns all response headers passed in through context

Types

This section is empty.

Jump to

Keyboard shortcuts

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