Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHandler ¶
func GetHandler(context echo.Context) error
@Summary Do a GET request. @Tags Proxy Methods @Description Query httpod as reverse proxy to uri. @Accept json @Produce json @Param uri header string false "Full URI to use for the backend request. Mandatory. e.g. https://example.org/path " @Param method header string false "Method to use for the backend request. Optional, defaults to 'GET'." TODO @Param body header string false "Body to use for a POST request. Optional." TODO @Param additionalHeaders header string false "JSON of headers to add to the backend request. Optional." @Success 200 @Failure 400 @Failure 500 @Router /proxy [get]
Types ¶
type BackendRequest ¶
type BackendRequest struct { Method string URI *url.URL Request *http.Request HttpClient *http.Client }
var (
Br BackendRequest
)
Click to show internal directories.
Click to hide internal directories.