RequestsHTTPSender Class

A requests HTTP sender that can consume a msrest.Configuration object.

This instance will consume the following configuration attributes:

  • connection
  • proxies
  • retry_policy
  • redirect_policy
  • enable_http_logger
  • hooks
  • session_configuration_callback
Inheritance
RequestsHTTPSender

Constructor

RequestsHTTPSender(config=None)

Methods

send

Send request object according to configuration.

Available kwargs:

  • session : will override the driver session and use yours. Should NOT be done unless really required.

  • A subset of what requests.Session.request can receive:

    • cookies

    • verify

    • timeout

    • allow_redirects

    • proxies

    • verify

    • cert

Everything else will be silently ignored.

send

Send request object according to configuration.

Available kwargs:

  • session : will override the driver session and use yours. Should NOT be done unless really required.

  • A subset of what requests.Session.request can receive:

    • cookies

    • verify

    • timeout

    • allow_redirects

    • proxies

    • verify

    • cert

Everything else will be silently ignored.

send(request, **kwargs)

Parameters

request
<xref:ClientRequest>
Required

The request object to be sent.