Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DoNotLogErrorHeaderKey is a header key used for marking non-loggable errors. More precisely, if an HTTP response // has a status code 5xx, and contains a header with key DoNotLogErrorHeaderKey and any values, the generated error // will be marked as non-loggable. DoNotLogErrorHeaderKey = http.CanonicalHeaderKey("X-DoNotLogError") )
Functions ¶
func ParseURL ¶
ParseURL deals with direct:// style URLs, as well as kubernetes:// urls. For backwards compatibility it treats URLs without schemes as kubernetes://.
func WithReturn4XXErrors ¶
func WithReturn4XXErrors(s *Server)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a http.Handler that forwards the request over gRPC.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements HTTPServer. HTTPServer is a generated interface that gRPC servers must implement.
func (Server) Handle ¶
func (s Server) Handle(ctx context.Context, r *httpgrpc.HTTPRequest) (*httpgrpc.HTTPResponse, error)
Handle implements HTTPServer.
Click to show internal directories.
Click to hide internal directories.