- Added headers support in session
INCOMPATIBILITIES
- Removed `process_response` hook
- JSONRequest classes no longer try to convert response to json
- rationale:
- keep responses consistent among all Request classes
- keep Portale as close to requests as possible
- Exceptions are no longer raised on failed request (such as 4xx/5xx)
INCOMPATIBILITIES
timeout
is renamed tocache_ttl
to later avoid conflict with requeststimeout
parameter- sending payload is simplified and more natural
tosome_api(op=add, json={'a': 1, 'b': 2})
some_api(op=add, a=1, b=2)