virgil_sdk.client.connections.request module

class virgil_sdk.client.connections.request.Request(endpoint, body=None, method='GET', headers=None)[source]

Bases: virgil_sdk.client.connections.base_request.BaseRequest

Http request wrapper.

Parameters
  • endpoint – request endpoint

  • body – request body

  • headers – dict of request additional headers

  • method – http request method

DELETE = 'DELETE'
GET = 'GET'
POST = 'POST'
PUT = 'PUT'
authorization(access_token)[source]

Add authorization token to request.

Parameters

access_token – Service access token.

property body

Gets the requests body.

property endpoint

Gets the endpoint. Does not include server base address

property headers

Gets the http headers.

property method

Gets the request method.