redirect

package
v0.0.0-...-f07b5d3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExampleCalloutService

type ExampleCalloutService struct {
	server.GRPCCalloutService
}

ExampleCalloutService represents the callout service used to handle HTTP request headers and provide an immediate redirection response.

func NewExampleCalloutService

func NewExampleCalloutService() *ExampleCalloutService

NewExampleCalloutService creates a new instance of ExampleCalloutService and assigns the HandleRequestHeaders method to the RequestHeadersHandler.

func (*ExampleCalloutService) HandleRequestHeaders

func (s *ExampleCalloutService) HandleRequestHeaders(headers *extproc.HttpHeaders) (*extproc.ProcessingResponse, error)

HandleRequestHeaders handles the HTTP request headers and returns a ProcessingResponse with an immediate redirection response.

Jump to

Keyboard shortcuts

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