Sunli
9b5149ee23
Respect query object field order. #612
2021-10-26 19:02:15 +08:00
Sunli
024a143f11
Add support for graphql-ws pings. #635
2021-09-16 21:10:39 +08:00
Sunli
cdede18a06
Fix typo
2021-09-03 15:15:41 +08:00
Erik Tesar
0251046ada
fix: fix build and gate cbor behind feature flag
2021-09-02 15:58:37 +02:00
Erik Tesar
b95852cf28
Merge feat/multipart into master
2021-09-02 15:32:08 +02:00
Erik Tesar
42548ce04b
feat: implement cbor in multipart
2021-09-02 15:27:44 +02:00
Sunli
ed9ec2a3a8
Update mod.rs
2021-09-02 20:19:08 +08:00
Sunli
bdd4c2c3ef
Update CHANGELOG
2021-09-02 20:06:39 +08:00
Sunli
2d8c6f47fb
Merge branch 'master' of https://github.com/minkan-chat/async-graphql into pr/619
2021-09-02 20:03:02 +08:00
Sunli
00afdbb8fc
Merge branch 'master' into pr/619
2021-09-02 19:39:49 +08:00
Sunli
3e9295b91b
Add feature gate cbor
.
2021-09-02 19:39:45 +08:00
Erik Tesar
deef5cee4b
style: cargo fmt
...
please note that clippy probably will still fail, because this fork was created before c80687af80
2021-09-02 13:37:18 +02:00
Erik Tesar
d9cb3b91be
fix: ParseRequestError::InvalidFilesMap now is dyn std::error::Error
2021-09-02 12:21:34 +02:00
Nicolai Unrein
d6c6d614f2
Remove unnecessary unwrap
in multipart handler
...
The call to `unwrap` is not save at this point and will panic on connection errors/disconnects.
Instead a `ParseRequestError::InvalidMultipart(multer::Error)` will now get returned instead.
2021-08-03 11:59:23 +02:00
Sunli
1d7742779e
Add Axum integration.
2021-08-03 08:56:24 +08:00
Erik Tesar
5ffcf8c36a
decide which decoder to use based on content-type
2021-07-31 14:52:56 +02:00
Erik Tesar
63e423a178
always use cbor methode for deserialization
2021-07-28 17:37:47 +02:00
Erik Tesar
c88f4bbd0e
try to use cbor decoding
2021-07-27 21:37:30 +02:00
Miaxos
02df4f1c24
misc: boxed error
2021-07-26 17:32:49 +00:00
cloudybyte
37e6a1b715
try to add cbor support
2021-07-26 17:29:52 +02:00
Tim Maddison
f318e02610
Reformat
2021-07-23 10:09:02 +01:00
Tim Maddison
fa218b435e
Change with_setting to accept any JSON value
2021-07-23 09:44:04 +01:00
Sunli
2dce1ad35f
Clippy clean
2021-06-18 10:43:34 +08:00
Sunli
c7c7e3ad05
Remove the static
constraint of the receive_body
and receive_batch_body
functions. #544
2021-06-16 17:20:41 +08:00
Sunli
588a7e40e8
Bump multer from v1.2.2
to v2.0.0
2021-06-07 14:07:53 +08:00
Oscar Beaumont
ac8c5497f7
style:linted code
2021-05-18 03:27:50 +08:00
Oscar Beaumont
cbfd46e890
Allow the ability to set GraphQL Playground settings
2021-05-14 15:16:23 +08:00
Sunli
63738e9a3a
Rustfmt
2021-05-08 14:10:59 +08:00
D1plo1d
ed8332ec90
feat: Websocket::with_message_stream added for developers to experiment with File Uploads over WebSockets
2021-05-06 20:08:28 -04:00
Utkarsh Kukreti
a7f662e4a5
add missing fonts to http::playground_source's html
...
graphql-playground uses Open Sans and Source Code Pro and its README
suggests adding this snippet [1].
[1]: https://github.com/graphql/graphql-playground#use
2021-04-18 03:03:29 +05:30
Sunli
05911f3516
Rework Extension & TracingExtension & OpenTelemetryExtension
2021-03-26 12:03:10 +08:00
Sunli
c2c2868b64
Fix internal context missing when there's no connection_init frame. #451
2021-03-24 17:24:12 +08:00
Sunli
1c32a8afcb
Now all features are not activated by default.
2021-03-22 10:39:17 +08:00
Sunli
d0fe7fc23b
Remove unnecessary Box from WebSocket messages.
2021-03-09 12:07:12 +08:00
puh
f77b34356e
Fix typo in multipart stream size limit calculations
2021-02-13 21:50:17 +03:00
Sunli
2d7627cd39
Fixed GraphQL over WebSocket Protocol does not support ConnectionError events. #406
2021-02-06 11:02:41 +08:00
Sunli
d193a138e3
Fixed the bug that can accept subscription requests during the initialization of WebSocket.
2021-02-06 09:24:00 +08:00
Sunli
b98e35995d
Supports async websocket initializer. #393
2021-01-16 16:37:20 +08:00
Sunli
b054fc0704
Add Send + Sync
constraints for InputType
, OutputType
and SubscriptionType
.
2021-01-14 12:41:59 +08:00
Sunli
46d01db40f
Merge branch 'master' into pr/350
2020-12-04 12:17:23 +08:00
Patrick Fernie
e25bcf1c98
use Sec-WebSocket-Protocol
header to negotiate protocol
2020-12-03 16:16:07 -05:00
Patrick Fernie
0e711b782e
rustfmt fixes
2020-12-02 08:41:12 -05:00
Patrick Fernie
7fb6d7bfbe
Add graphql-ws
feature for subprotcol selection
...
On 2020-09-14 a revised version of the [GraphQL over
WebSocket](https://the-guild.dev/blog/graphql-over-websockets ) spec was
released as [graphql-ws](https://github.com/enisdenjo/graphql-ws ), which
differs from the de facto standard implemented by
[subscriptions-transport-ws](https://github.com/apollographql/subscriptions-transport-ws ).
This adds a new `cargo` (non-default) feature, `graphql_ws`, which when enabled utilizes the new protocol spec.
Original [subscriptions-transport-ws
protocol](https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md )
Revised [graphql-ws
protocol](https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md )
2020-12-02 08:13:00 -05:00
Sunli
3a0dda2224
Remove the dependency on bytes
crate.
2020-11-30 13:43:17 +08:00
Sunli
d3a00571c0
Clippy clean
2020-11-07 08:24:17 +08:00
Sunli
d95fbb42d9
Fixed a bug that websocket could not push data in a situation.
2020-11-06 22:20:12 +08:00
Sunli
c0323002ea
Remove the validation of the content-type
by the receive_batch_body
function, because this is of little significance. #332
2020-11-01 11:31:54 +08:00
Olexiy Buyanskyy
3ac150bef9
removed not needed namespaces
2020-10-23 13:49:00 +03:00
Olexiy Buyanskyy
baf67f3344
Fixed redundant_closure_for_method_calls
...
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
2020-10-23 11:10:00 +03:00
Olexiy Buyanskyy
bd966d5ba3
Collected all clippy warnings and fixed 2
...
https://rust-lang.github.io/rust-clippy/master/index.html#inefficient_to_string
https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
Please change `allow` -> `deny` ub src/lib.rs to see other warnings. I feel some of them are important
2020-10-22 09:38:35 +03:00