django_socio_grpc.request_transformer.socio_internal_request

Module Contents

Classes

InternalHttpRequest

Class mocking django.http.HttpRequest to make some django behavior like middleware, filtering, authentication, … still work. TODO - AM - Inherit this directly from django.http.HttpRequest ?

API

class django_socio_grpc.request_transformer.socio_internal_request.InternalHttpRequest(grpc_context, grpc_action)

Class mocking django.http.HttpRequest to make some django behavior like middleware, filtering, authentication, … still work. TODO - AM - Inherit this directly from django.http.HttpRequest ?

Initialization

HEADERS_KEY

‘HEADERS’

MAP_HEADERS

None

FILTERS_KEY

‘FILTERS’

PAGINATION_KEY

‘PAGINATION’

METHOD_MAP

None

get_from_metadata(metadata_key)
convert_metadata_to_dict(invocation_metadata)
get_query_params()
build_absolute_uri()
grpc_action_to_http_method_name(grpc_action)