Documentation
¶
Overview ¶
Package resthandler evaluates and execute REST requests to the remote server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRESTHandler ¶
func NewRESTHandler( operation *schema.RelyProxyOperation, options *schema.NewRelyProxyHandlerOptions, ) (schema.RelyProxyHandler, error)
NewRESTHandler creates a RESTHandler from operation.
Types ¶
type RESTHandler ¶
type RESTHandler struct {
// contains filtered or unexported fields
}
RESTHandler implements the RelyProxyHandler interface for REST proxy.
func (*RESTHandler) Handle ¶
func (re *RESTHandler) Handle( ctx context.Context, request *http.Request, options *schema.RelyProxyHandleOptions, ) (*http.Response, any, error)
Handle resolves the HTTP request and proxies that request to the remote server.
func (*RESTHandler) Type ¶
func (*RESTHandler) Type() schema.RelyProxyType
Type returns type of the current handler.
Click to show internal directories.
Click to hide internal directories.