context

package
v1.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AdditionalHeadersContextKey = ContextKey("additionalHeaders")
View Source
const StreamingContextKey = ContextKey("streaming")

Variables

This section is empty.

Functions

func GetAdditionalHeaders

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

func IsStreaming

func IsStreaming(ctx context.Context) bool

func WithAdditionalHeaders

func WithAdditionalHeaders(ctx context.Context, headers map[string]string) context.Context

func WithStreaming

func WithStreaming(ctx context.Context) context.Context

Types

type ContextKey

type ContextKey string

Jump to

Keyboard shortcuts

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