request_timeout_adapter
A Transport Adapter that adds a default timeout to requests.
Module Contents
Classes
A Transport Adapter that adds a default timeout to requests. |
- class request_timeout_adapter.TimeoutHTTPAdapter(connect_timeout, read_timeout, *args, **kwargs)
Bases:
digraph inheritance3540487f8a { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "BaseAdapter" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="The Base Transport Adapter"]; "HTTPAdapter" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="The built-in HTTP Adapter for urllib3."]; "BaseAdapter" -> "HTTPAdapter" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TimeoutHTTPAdapter" [URL="#request_timeout_adapter.TimeoutHTTPAdapter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Transport Adapter that adds a default timeout to requests."]; "HTTPAdapter" -> "TimeoutHTTPAdapter" [arrowsize=0.5,style="setlinewidth(0.5)"]; }requests.adapters.HTTPAdapterA Transport Adapter that adds a default timeout to requests.
- send(request, **kwargs)
Send the request with the specified timeout if not already provided. :param request: :param kwargs: :return: