package
2.7.0
Repository: https://github.com/luraproject/lura.git
Documentation: pkg.go.dev

# Packages

Package plugin provides plugin register interfaces for building http handler plugins.

# Functions

DefaultToHTTPError is a ToHTTPError transalator that always returns an internal server error.
InitHTTPDefaultTransport ensures the default HTTP transport is configured just once per execution.
No description provided by the author
NewServer returns a http.Server ready to serve the injected handler.
No description provided by the author
No description provided by the author
ParseTLSConfig creates a tls.Config from the TLS section of the service configuration.
No description provided by the author
RunServer runs a http.Server with the given handler and configuration.
No description provided by the author

# Constants

HeaderCompleteResponseValue is the value of the CompleteResponseHeader if the response is complete.
HeaderIncompleteResponseValue is the value of the CompleteResponseHeader if the response is not complete.

# Variables

CompleteResponseHeaderName is the header to flag incomplete responses to the client.
ErrInternalError is the error returned by the router when something went wrong.
ErrPrivateKey is the error returned by the router when the private key is not defined.
ErrPublicKey is the error returned by the router when the public key is not defined.
HeadersToSend are the headers to pass from the router request to the proxy.
UserAgentHeaderValue is the value of the User-Agent header to add to the proxy request.

# Type aliases

ToHTTPError translates an error into a HTTP status code.