strawberry-graphql 0.273.0__py3-none-any.whl → 0.273.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- strawberry/aiohttp/views.py +5 -5
- strawberry/chalice/views.py +4 -1
- {strawberry_graphql-0.273.0.dist-info → strawberry_graphql-0.273.2.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.273.0.dist-info → strawberry_graphql-0.273.2.dist-info}/RECORD +7 -7
- {strawberry_graphql-0.273.0.dist-info → strawberry_graphql-0.273.2.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.273.0.dist-info → strawberry_graphql-0.273.2.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.273.0.dist-info → strawberry_graphql-0.273.2.dist-info}/entry_points.txt +0 -0
strawberry/aiohttp/views.py
CHANGED
@@ -43,7 +43,7 @@ if TYPE_CHECKING:
|
|
43
43
|
from strawberry.schema import BaseSchema
|
44
44
|
|
45
45
|
|
46
|
-
class
|
46
|
+
class AiohttpHTTPRequestAdapter(AsyncHTTPRequestAdapter):
|
47
47
|
def __init__(self, request: web.Request) -> None:
|
48
48
|
self.request = request
|
49
49
|
|
@@ -68,7 +68,7 @@ class AioHTTPRequestAdapter(AsyncHTTPRequestAdapter):
|
|
68
68
|
data: dict[str, Any] = {}
|
69
69
|
files: dict[str, Any] = {}
|
70
70
|
|
71
|
-
|
71
|
+
while field := await reader.next():
|
72
72
|
assert isinstance(field, BodyPartReader)
|
73
73
|
assert field.name
|
74
74
|
|
@@ -84,7 +84,7 @@ class AioHTTPRequestAdapter(AsyncHTTPRequestAdapter):
|
|
84
84
|
return self.headers.get("content-type")
|
85
85
|
|
86
86
|
|
87
|
-
class
|
87
|
+
class AiohttpWebSocketAdapter(AsyncWebSocketAdapter):
|
88
88
|
def __init__(
|
89
89
|
self, view: AsyncBaseHTTPView, request: web.Request, ws: web.WebSocketResponse
|
90
90
|
) -> None:
|
@@ -132,8 +132,8 @@ class GraphQLView(
|
|
132
132
|
_is_coroutine = asyncio.coroutines._is_coroutine # type: ignore[attr-defined]
|
133
133
|
|
134
134
|
allow_queries_via_get = True
|
135
|
-
request_adapter_class =
|
136
|
-
websocket_adapter_class =
|
135
|
+
request_adapter_class = AiohttpHTTPRequestAdapter
|
136
|
+
websocket_adapter_class = AiohttpWebSocketAdapter
|
137
137
|
|
138
138
|
def __init__(
|
139
139
|
self,
|
strawberry/chalice/views.py
CHANGED
@@ -124,7 +124,10 @@ class GraphQLView(
|
|
124
124
|
return Response(
|
125
125
|
body=self.encode_json(response_data),
|
126
126
|
status_code=status_code,
|
127
|
-
headers=
|
127
|
+
headers={
|
128
|
+
"Content-Type": "application/json",
|
129
|
+
**sub_response.headers,
|
130
|
+
},
|
128
131
|
)
|
129
132
|
|
130
133
|
def execute_request(self, request: Request) -> Response:
|
@@ -3,13 +3,13 @@ strawberry/__main__.py,sha256=3U77Eu21mJ-LY27RG-JEnpbh6Z63wGOom4i-EoLtUcY,59
|
|
3
3
|
strawberry/aiohttp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
strawberry/aiohttp/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
|
5
5
|
strawberry/aiohttp/test/client.py,sha256=8FKZTnvawxYpgEICOri-34O3wHRHLhRpjH_Ktp2EupQ,1801
|
6
|
-
strawberry/aiohttp/views.py,sha256=
|
6
|
+
strawberry/aiohttp/views.py,sha256=1W93XsvT65zavehNXCQlD5S-Mec14jCPfolj9xVZACc,7904
|
7
7
|
strawberry/annotation.py,sha256=iqSXtJ4pTTLDZRPyil0f-yzpcCm8UYRiwvFWkD5LgpQ,13498
|
8
8
|
strawberry/asgi/__init__.py,sha256=psdKl_52LGkxKKbzZlmwNGZ9jz2FLyLSC7fUhys4FqY,8169
|
9
9
|
strawberry/asgi/test/__init__.py,sha256=4xxdUZtIISSOwjrcnmox7AvT4WWjowCm5bUuPdQneMg,71
|
10
10
|
strawberry/asgi/test/client.py,sha256=kp2O5znHWuAB5VVYO8p4XPSTEDDXBSjNz5WHqW0r6GM,1473
|
11
11
|
strawberry/chalice/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
|
-
strawberry/chalice/views.py,sha256=
|
12
|
+
strawberry/chalice/views.py,sha256=NBr_Chym4oMrhsr_kD4dx6gNnyBSBo8u7lKykRyfi4k,4819
|
13
13
|
strawberry/channels/__init__.py,sha256=AVmEwhzGHcTycMCnZYcZFFqZV8tKw9FJN4YXws-vWFA,433
|
14
14
|
strawberry/channels/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
15
|
strawberry/channels/handlers/base.py,sha256=3mSvT2HMlOoWr0Y_8y1wwSmvCmB8osy2pEK1Kc5zJ5M,7841
|
@@ -232,8 +232,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
|
|
232
232
|
strawberry/utils/operation.py,sha256=CCIREeh3-CzjvjyjhmYPRCVDZUX36jAxF6LbK8r5wEw,1222
|
233
233
|
strawberry/utils/str_converters.py,sha256=-eH1Cl16IO_wrBlsGM-km4IY0IKsjhjnSNGRGOwQjVM,897
|
234
234
|
strawberry/utils/typing.py,sha256=SDvX-Du-9HAV3-XXjqi7Q5f5qPDDFd_gASIITiwBQT4,14073
|
235
|
-
strawberry_graphql-0.273.
|
236
|
-
strawberry_graphql-0.273.
|
237
|
-
strawberry_graphql-0.273.
|
238
|
-
strawberry_graphql-0.273.
|
239
|
-
strawberry_graphql-0.273.
|
235
|
+
strawberry_graphql-0.273.2.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
236
|
+
strawberry_graphql-0.273.2.dist-info/METADATA,sha256=_WrvVea-REDvLv_SJ4yLImf6pmWIJ4ZSNnGEsR2II_M,7444
|
237
|
+
strawberry_graphql-0.273.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
238
|
+
strawberry_graphql-0.273.2.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
239
|
+
strawberry_graphql-0.273.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{strawberry_graphql-0.273.0.dist-info → strawberry_graphql-0.273.2.dist-info}/entry_points.txt
RENAMED
File without changes
|