Thanks to visit codestin.com
Credit goes to pkg.go.dev

cors

package
v2.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasBehavior

func HasBehavior(ctx context.Context, behavior codersdk.CORSBehavior) bool

HasBehavior returns true if the given context has the specified CORS behavior.

func WithBehavior

func WithBehavior(ctx context.Context, behavior codersdk.CORSBehavior) context.Context

WithBehavior sets the CORS behavior for the given context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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