responsetransformer

package
v0.0.0-...-98b9f36 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResponseTransformer

func NewResponseTransformer(config Config) func(http.Handler) http.Handler

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