Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeout ¶
GetTimeout returns the timeout from the header, if not set, returns the default timeout.
func NewRequestParser ¶
func NewRequestParser(r *http.Request, resolver jsonpb.AnyResolver) (grpcurl.RequestParser, error)
NewRequestParser creates a new request parser from the given http.Request and resolver.
func ProcessHeaders ¶
ProcessHeaders builds the headers for the gateway from HTTP headers.
Types ¶
Click to show internal directories.
Click to hide internal directories.