resthandler

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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

Type returns type of the current handler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL