traefik_replace_response_code

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 4 Imported by: 0

README

traefik-plugin-jwt-header-to-query

Transform JWT from Authorization header to query parameter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error)

Types

type Config

type Config struct {
	InputCode  int  `json:"inputCode,omitempty"`
	OutputCode int  `json:"outputCode,omitempty"`
	RemoveBody bool `json:"removeBody,omitempty"`
}

Config the plugin configuration.

func CreateConfig

func CreateConfig() *Config

type StatusCodeReplacer

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

func (*StatusCodeReplacer) ServeHTTP

func (a *StatusCodeReplacer) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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