Skip to content

Index

This module defines blocking and asynchronous clients.

KeyType

Bases: enum.Enum

Key type used for authorization token.

APP_KEY instance-attribute class-attribute

APP_KEY = 'APP_KEY'

USER_KEY instance-attribute class-attribute

USER_KEY = 'USER_KEY'

Deprecated in favor of 'BEARER'.

BEARER instance-attribute class-attribute

BEARER = 'BEARER'

get_authorization_prefix

get_authorization_prefix()

Returns prefix for authorization header based on key type.

Returns:

  • str

    Authorization prefix.

decode_request_content

decode_request_content(request)

Returns decoded request content.

Parameters:

  • request (Request) –

    Request where content is read.

Returns:

  • str

    Decoded request content