headers

package
v0.0.0-...-045890f Latest Latest
Warning

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

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

README

headers

import "github.com/go-orion/Orion/utils/headers"

Overview

Imported Packages

No packages beyond the Go standard library are imported.

Index

Package files

headers.go

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


Generated by godoc2ghmd

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