Route¶
- class inori.Route(client, url, trailing_slash=False)¶
Representation of a single route in an API.
Route objects should be created via Client.add_route().
Example
>>> client = Client('http://foo.bar/v1') >>> fruits = client.add_route('fruits')>>> # The following are equivalent statements: >>> fruits.get() >>> client.fruits.get()- Parameters:¶
- headers¶
Dictionary containing all the Route-level headers
- request(http_method, *args, headers=None, **kwargs)¶
Send an HTTP Request.
Accepts the same keyword arguments as requests.Session.request().