addons

package
v0.0.0-...-e903210 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reflected

type Reflected struct {
	proxy.BaseAddon
}

func (*Reflected) Response

func (a *Reflected) Response(f *proxy.Flow)

type Request

type Request map[string]*RequestData

type RequestData

type RequestData struct {
	QueryParams url.Values  `json:"queryParams,omitempty"`
	Body        interface{} `json:"body,omitempty"`
	ContentType string      `json:"content-type,omitempty"`
}

type RequestMapper

type RequestMapper struct {
	proxy.BaseAddon
	// contains filtered or unexported fields
}

func NewRequestMapper

func NewRequestMapper(dir string, urlRegex string) (*RequestMapper, error)

func (*RequestMapper) Response

func (rm *RequestMapper) Response(f *proxy.Flow)

type Requests

type Requests map[string]Request

Jump to

Keyboard shortcuts

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