header

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package header stores and accesses the HTTP Authorization header in and from context.Context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (string, bool)

FromContext returns the HTTP Authorization header value stored in ctx, if any.

func NewContext

func NewContext(ctx context.Context, h string) context.Context

NewContext returns a new context.Context that carries value h.

Types

This section is empty.

Jump to

Keyboard shortcuts

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