Skip to content

Index

This module defines blocking and asynchronous clients.

KeyType

Bases: Enum

Key type used for authorization token.

APP_KEY class-attribute instance-attribute

APP_KEY = 'APP_KEY'

USER_KEY class-attribute instance-attribute

USER_KEY = 'USER_KEY'

Deprecated in favor of 'BEARER'.

BEARER class-attribute instance-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