Documentation ¶
Index ¶
- type ExampleCalloutService
- func (s *ExampleCalloutService) HandleRequestBody(body *extproc.HttpBody) (*extproc.ProcessingResponse, error)
- func (s *ExampleCalloutService) HandleRequestHeaders(headers *extproc.HttpHeaders) (*extproc.ProcessingResponse, error)
- func (s *ExampleCalloutService) HandleResponseBody(body *extproc.HttpBody) (*extproc.ProcessingResponse, error)
- func (s *ExampleCalloutService) HandleResponseHeaders(headers *extproc.HttpHeaders) (*extproc.ProcessingResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExampleCalloutService ¶
type ExampleCalloutService struct {
server.GRPCCalloutService
}
ExampleCalloutService is a GRPC callout service that processes HTTP headers and bodies.
func NewExampleCalloutService ¶
func NewExampleCalloutService() *ExampleCalloutService
NewExampleCalloutService creates a new ExampleCalloutService with initialized handlers.
func (*ExampleCalloutService) HandleRequestBody ¶
func (s *ExampleCalloutService) HandleRequestBody(body *extproc.HttpBody) (*extproc.ProcessingResponse, error)
HandleRequestBody processes the incoming HTTP request body and modifies it.
func (*ExampleCalloutService) HandleRequestHeaders ¶
func (s *ExampleCalloutService) HandleRequestHeaders(headers *extproc.HttpHeaders) (*extproc.ProcessingResponse, error)
HandleRequestHeaders processes the incoming HTTP request headers and adds a new header.
func (*ExampleCalloutService) HandleResponseBody ¶
func (s *ExampleCalloutService) HandleResponseBody(body *extproc.HttpBody) (*extproc.ProcessingResponse, error)
HandleResponseBody processes the outgoing HTTP response body and modifies it.
func (*ExampleCalloutService) HandleResponseHeaders ¶
func (s *ExampleCalloutService) HandleResponseHeaders(headers *extproc.HttpHeaders) (*extproc.ProcessingResponse, error)
HandleResponseHeaders processes the outgoing HTTP response headers and adds a new header.
Click to show internal directories.
Click to hide internal directories.