Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestScheme ¶
func WriteError ¶
func WriteError( w http.ResponseWriter, status int, )
Types ¶
type ForwardConfig ¶
type RequestPayload ¶
type ResponseResult ¶
type ResponseResult struct {
StatusCode int `json:"statusCode"`
Headers map[string][]string `json:"headers,omitempty"`
Body []byte `json:"body,omitempty"`
}
func ForwardRequest ¶
func ForwardRequest( ctx context.Context, cfg ForwardConfig, payload *RequestPayload, ) (*ResponseResult, error)
Click to show internal directories.
Click to hide internal directories.