Documentation ¶
Index ¶
- Constants
- Variables
- type RouteServiceArgs
- type RouteServiceConfig
- func (rs *RouteServiceConfig) GenerateSignatureAndMetadata(forwardedUrlRaw string) (string, string, error)
- func (rs *RouteServiceConfig) RouteServiceEnabled() bool
- func (rs *RouteServiceConfig) SetupRouteServiceRequest(request *http.Request, args RouteServiceArgs)
- func (rs *RouteServiceConfig) ValidateSignature(headers *http.Header, requestUrl string) error
Constants ¶
View Source
const ( RouteServiceSignature = "X-CF-Proxy-Signature" RouteServiceForwardedUrl = "X-CF-Forwarded-Url" RouteServiceMetadata = "X-CF-Proxy-Metadata" )
Variables ¶
View Source
var RouteServiceExpired = errors.New("Route service request expired")
View Source
var RouteServiceForwardedUrlMismatch = errors.New("Route service forwarded url mismatch")
Functions ¶
This section is empty.
Types ¶
type RouteServiceArgs ¶
type RouteServiceConfig ¶
type RouteServiceConfig struct {
// contains filtered or unexported fields
}
func NewRouteServiceConfig ¶
func (*RouteServiceConfig) GenerateSignatureAndMetadata ¶
func (rs *RouteServiceConfig) GenerateSignatureAndMetadata(forwardedUrlRaw string) (string, string, error)
func (*RouteServiceConfig) RouteServiceEnabled ¶
func (rs *RouteServiceConfig) RouteServiceEnabled() bool
func (*RouteServiceConfig) SetupRouteServiceRequest ¶
func (rs *RouteServiceConfig) SetupRouteServiceRequest(request *http.Request, args RouteServiceArgs)
func (*RouteServiceConfig) ValidateSignature ¶
func (rs *RouteServiceConfig) ValidateSignature(headers *http.Header, requestUrl string) error
Click to show internal directories.
Click to hide internal directories.