responsetransformer

package
v0.0.0-...-b40c5a5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResponseTransformer

func NewResponseTransformer(config Config) proxy.OutLink

NewResponseTransformer creates a new instance of RequestTransformer

Types

type Config

type Config struct {
	Add     Options `json:"add"`
	Append  Options `json:"append"`
	Remove  Options `json:"remove"`
	Replace Options `json:"replace"`
}

Config represent the configuration of the modify headers middleware

type Options

type Options struct {
	Headers map[string]string `json:"headers"`
}

Options represents the available options to transform

Jump to

Keyboard shortcuts

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