graphql-rust / juniper

GraphQL server library for Rust
Other
5.62k stars 416 forks source link

Add support for `Request<T>` where `T` is a type that implements `hyper::body::Body` trait #1263

Open elcharitas opened 3 weeks ago

elcharitas commented 3 weeks ago

Should resolve #1102

Problem

Attempts to use any other hyper request type aside Request<hyper::body::Incoming> fails with a compile-time error of type mismatch

Solution

Add generic support for valid supported hyper Request or any custom Request that has a body which implements hyper::body::Body

Checklist

  • [x] ~Tests are added~ (not required)
  • [x] CHANGELOG entry is added
  • [x] ~Documentation is updated~ (not required)
elcharitas commented 3 weeks ago

CI Checks seem to fail and this is weird since the issues arise from the juniper crate.

Any pointers?