director

package
Version: v0.0.0-...-1730ba2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityRoundTripper

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

SecurityRoundTripper wraps a request/response cycle, interrupting before the request a backend or before a response is sent to the client

func WithRegistry

func WithRegistry(previous http.RoundTripper, r *processor.Registry) *SecurityRoundTripper

WithRegistry creates a new instance of Qaclana's security RoundTripper using the given regitry

func (*SecurityRoundTripper) RoundTrip

func (s *SecurityRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip wraps the request/response cycle around the underlying RoundTripper, checking the response data before calling the backend and checking the response before sending back to the client

Source Files

Jump to

Keyboard shortcuts

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