flatland.integrations.interactiveai.context_api.rest module#

APIFlask

No description provided (generated by Openapi Generator openapitools/openapi-generator)

The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class flatland.integrations.interactiveai.context_api.rest.RESTClientObject(configuration)[source]#

Bases: object

request(method, url, headers=None, body=None, post_params=None, _request_timeout=None)[source]#

Perform requests.

Parameters:
  • method – http request method

  • url – http request url

  • headers – http request headers

  • body – request json body, for application/json

  • post_params – request post parameters, application/x-www-form-urlencoded and multipart/form-data

  • _request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

class flatland.integrations.interactiveai.context_api.rest.RESTResponse(resp)[source]#

Bases: IOBase

getheader(name, default=None)[source]#

Returns a given response header.

getheaders()[source]#

Returns a dictionary of the response headers.

read()[source]#
flatland.integrations.interactiveai.context_api.rest.is_socks_proxy_url(url)[source]#