Response handling

The entry point of the application wrapped by the Request. The request tend to be immutable.

Request actually is a builder, it builds request arguments for the endpoint, can hold extra information about the application about the whole environment and can be passed to the endpoint as well.

class pyrs.resource.request.Request(opts, app=None, path=None, query=None, body=None, headers=None, auth=None, cookies=None, session=None)[source]

Bases: object

_get_inject(name, force_kwargs=False)[source]
_inject(inject, value, opt=None)[source]
_parse_value(value, opt)[source]

Parse a value based on options. The option can be None means shouldn’t be not parsed Can be an instance (or a subclass) of schema.Object. In that case the schema load will be executed

_setup_injects()[source]
build()[source]