Documentation ¶
Index ¶
Constants ¶
View Source
const ID = "headers"
ID contains default service name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORSConfig ¶
type CORSConfig struct { // AllowedOrigin: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin AllowedOrigin string // AllowedHeaders: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers AllowedHeaders string // AllowedMethods: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods AllowedMethods string // AllowCredentials https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials AllowCredentials *bool // ExposeHeaders: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers ExposedHeaders string // MaxAge of CORS headers in seconds/ MaxAge int }
CORSConfig headers configuration.
type Config ¶
type Config struct { // CORS settings. CORS *CORSConfig // Request headers to add to every payload send to PHP. Request map[string]string // Response headers to add to every payload generated by PHP. Response map[string]string }
Config declares headers service configuration.
Click to show internal directories.
Click to hide internal directories.