CorsSettings

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	// contains filtered or unexported fields
}

func New

func New(settings map[string]interface{}) *Settings

func (*Settings) AllowCredentials

func (st *Settings) AllowCredentials() bool

func (*Settings) AllowedHeaders

func (st *Settings) AllowedHeaders() []string

func (*Settings) AllowedMethods

func (st *Settings) AllowedMethods() []string

func (*Settings) AllowedOrigins

func (st *Settings) AllowedOrigins() []string

func (*Settings) ExposedHeaders

func (st *Settings) ExposedHeaders() []string

func (*Settings) MaxAge

func (st *Settings) MaxAge() time.Duration

Jump to

Keyboard shortcuts

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