Documentation ¶
Index ¶
- Constants
- Variables
- type RouteServiceConfig
- func (rs *RouteServiceConfig) Request(rsUrl, forwardedUrl string) (RouteServiceRequest, error)
- func (rs *RouteServiceConfig) RouteServiceEnabled() bool
- func (rs *RouteServiceConfig) SetupRouteServiceRequest(request *http.Request, args RouteServiceRequest)
- func (rs *RouteServiceConfig) ValidateSignature(headers *http.Header, requestUrl string) error
- type RouteServiceRequest
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 RouteServiceConfig ¶
type RouteServiceConfig struct {
// contains filtered or unexported fields
}
func NewRouteServiceConfig ¶
func (*RouteServiceConfig) Request ¶
func (rs *RouteServiceConfig) Request(rsUrl, forwardedUrl string) (RouteServiceRequest, error)
func (*RouteServiceConfig) RouteServiceEnabled ¶
func (rs *RouteServiceConfig) RouteServiceEnabled() bool
func (*RouteServiceConfig) SetupRouteServiceRequest ¶
func (rs *RouteServiceConfig) SetupRouteServiceRequest(request *http.Request, args RouteServiceRequest)
func (*RouteServiceConfig) ValidateSignature ¶
func (rs *RouteServiceConfig) ValidateSignature(headers *http.Header, requestUrl string) error
Click to show internal directories.
Click to hide internal directories.