reqmodifier

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package reqmodifier contains a plugin for modifying HTTP requests in the ika API Gateway.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin is a RequestModifier that accurately rewrites the request path and host. This includes preserving the original path even if some parts have been encoded.

func (*Plugin) ModifyRequest

func (p *Plugin) ModifyRequest(r *http.Request) error

func (*Plugin) Name

func (*Plugin) Name() string

func (*Plugin) New

func (*Plugin) New(ctx context.Context, ictx ika.InjectionContext, config map[string]any) (ika.Plugin, error)

func (*Plugin) Teardown

func (*Plugin) Teardown(context.Context) error

Jump to

Keyboard shortcuts

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