Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORSOption ¶
type CORSOption func(*CORS)
func AllowedHeaders ¶
func AllowedHeaders(headers ...string) CORSOption
func AllowedMethods ¶
func AllowedMethods(methods ...string) CORSOption
func AllowedOrigins ¶
func AllowedOrigins(origins ...string) CORSOption
type OriginValidator ¶
OriginValidator takes an origin string and returns whether or not that origin is allowed.
Click to show internal directories.
Click to hide internal directories.