Skip to main content

Module request

Module request 

Source
Expand description

Request message construction for REST→gRPC transcoding.

Assembles the gRPC request JSON from three google.api.http sources, in precedence order: path parameters (highest), the request body, then query parameters (lowest, fill only). Path and query values arrive as strings, so they are coerced to each field’s proto type before prost-reflect decodes the message.

Enums§

BodyMapping
How the HTTP request body maps onto the gRPC request message.

Functions§

build_request_json
Build the request-message JSON from the body mapping, path params, and query.
extract_response_body
Extract a (possibly dotted) subfield of the response JSON for response_body.
parse_query
Parse a raw query string into ordered key/value pairs.