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
00afdbb8fc
Merge branch 'master' into pr/619
2021-09-02 19:39:49 +08: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
Miaxos
02df4f1c24
misc: boxed error
2021-07-26 17:32:49 +00: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
Sunli
1c32a8afcb
Now all features are not activated by default.
2021-03-22 10:39:17 +08:00
puh
f77b34356e
Fix typo in multipart stream size limit calculations
2021-02-13 21:50:17 +03:00
Sunli
3a0dda2224
Remove the dependency on bytes
crate.
2020-11-30 13:43:17 +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
Koxiaet
12fe7445c7
Replace futures with futures_util
2020-10-16 07:49:22 +01:00
Koxiaet
93c886af07
Make imports consistent
2020-10-15 07:38:10 +01:00
Sunli
87ba51fdd0
Some improvements.
2020-10-10 16:28:07 +08:00
Koxiaet
70d2dbc39c
Big improvements to tide integration
2020-09-23 18:30:03 +01:00
Koxiaet
07d2204773
Remove code duplication for batch requests
2020-09-17 19:43:03 +01:00
Sunli
76257403e2
Add support for batch queries.
2020-09-17 19:54:12 +08:00
Koxiaet
e2f53cc30f
Document features
2020-09-15 19:32:13 +01:00
Koxiaet
d2b1dd4cab
Fix compiling without features
2020-09-14 20:16:41 +01:00
Sunli
5bb705bdf3
2.0.0-alpha.5
2020-09-14 09:46:22 +08:00
Koxiaet
6e628031bf
Rework subscriptions
...
The main change in this commit is changing the return type of
SubscriptionType::create_stream from
Future<Result<Stream<Result<Response>>>> to just Stream<Result<Json>>. I
also allowed the returned stream to borrow from self and context.
2020-09-13 18:52:36 +01:00
Koxiaet
8d92454fc3
Support !Unpin in receive_body with pin project
2020-09-13 11:49:07 +01:00
Koxiaet
dcc7d1be14
Replace http::GQLRequest with Request
2020-09-12 17:07:46 +01:00
Sunli
1320d1ae45
Change MultipartOptions to a builder.
2020-09-12 07:43:50 +08:00
Sunli
049b652dd6
Add transports::websocket module.
2020-09-11 15:54:56 +08:00
Sunli
91c75ced2a
Make all tests passed (async-graphql).
2020-09-10 19:35:48 +08:00
Sunli
22d6e20da3
Merge changes.
2020-09-10 16:54:38 +08:00
Koxiaet
3945599015
Move HTTP functions to HTTP module
2020-09-10 08:04:24 +01:00
sunli
2a63fe1b54
Replace multipart parser with multer.
2020-05-17 16:26:36 +08:00
sunli
8e9aff105e
Support Upload Stream #15
...
I think the previous implementation is not elegant enough, the `QueryBuilder::set_files_holder` function looks disgusting, so I refactored it.
By the way, the performance of parsing InputValue has been optimized, and unnecessary clones have been removed.
2020-05-11 21:47:24 +08:00
sunli
98cdfd4c42
v1.9.5
2020-04-21 12:13:14 +08:00
sunli
a11248aa95
Add IntoQueryBuilderOpts
2020-04-21 10:14:14 +08:00
sunli
0b6bfd4c33
Add GQLHttpRequest and IntoQueryBuilder trait
2020-04-11 17:36:05 +08:00