A major update for HTTP Automation. Adds many more facilities and HTTP Facade class.
Http Automation
- Http Facade class added. Sessions are created using this class. Also supports quick sender methods with temp session creation.
- Support for basic and digest authentication.
- The session module is split into multiple modules for better maintenance as the code became large for single file.
- Added support for HEAD, PATCH, OPTIONS methods.
- Request headers property added for inquiry.
- is_redirect property added to HttpResponse
- Header assertions added.
- Support for pretty URL format for query params
- Support for query_params as a dict, for use when names are not valid python names.
- Added new named exceptions: HttpSendError, HttpConnectError, HttpRequestCreationError
- `content` as an alias for `text` for request and response objects.
- Redirections: max_redirects at session level (default 30), allow_redirects at individual send request level (default is True).
- Cookies can be added/overriden at request level.
- HttpResponse.cookies property added.
- Provision for request timeout.
- Support for setting proxy at session level.
- Support for utf8, bytes, file and multipart content type.
Configuration
- Added ArjunaOption.DATA_FILE_DIR to contain files that are supposed to be used as file data.
- create-project command creates project/data/file directory with a placeholder.
Data References
- Moved IndexedDataReference and ContextualDataReference classes to TPI.
NodeLocator
- Now available as Xml.node_locator