strawberry.channels.SyncGraphQLHTTPConsumer
Synchronous version of the HTTPConsumer.
This is the same as GraphQLHTTPConsumer
, but it can be used with
synchronous schemas (i.e. the schema’s resolvers are expected to be
synchronous and not asynchronous).
Methods:
-
get_root_value
Signature:
def get_root_value(self, request: ChannelsRequest) -> RootValue | None:...Parameters:
-
request:
- Type
-
ChannelsRequest
-
-
get_context
Signature:
def get_context(self, request: ChannelsRequest, response: TemporalResponse) -> Context:...Parameters:
-
request:
- Type
-
ChannelsRequest
-
response:
- Type
-
TemporalResponse
-
-
get_sub_response
Signature:
def get_sub_response(self, request: ChannelsRequest) -> TemporalResponse:...Parameters:
-
request:
- Type
-
ChannelsRequest
-
-
render_graphql_ide
Signature:
def render_graphql_ide(self, request: ChannelsRequest) -> ChannelsResponse:...Parameters:
-
request:
- Type
-
ChannelsRequest
-
-
run
Signature:
def run(self,request: ChannelsRequest,context: Context | None = UNSET,root_value: RootValue | None = UNSET,) -> ChannelsResponse:...Parameters:
-
request:
- Type
-
ChannelsRequest
-
context:
- Type
-
Context | None
- Default
-
UNSET
-
root_value:
- Type
-
RootValue | None
- Default
-
UNSET
-
Attributes:
-
allow_queries_via_get:
- Type
-
bool
-
request_adapter_class: