example does not build x64 windows #40

Closed
opened 2023-09-29 02:18:37 +13:00 by davehorner · 1 comment
davehorner commented 2023-09-29 02:18:37 +13:00 (Migrated from github.com)

hey there,
I'm actually looking to do multipart parsing via stdin and don't need the hyper service.

Just wanted to let you know the example does not compile today using hyper 0.4.14.

using the Read Example

error[E0432]: unresolved imports `hyper::server::Request`, `hyper::server::Response`
 --> examples\formdata.rs:5:29
  |
5 | use hyper::server::{Server, Request, Response};
  |                             ^^^^^^^  ^^^^^^^^ no `Response` in `server`
  |                             |
  |                             no `Request` in `server`
  |
  = help: consider importing one of these items instead:
          httparse::Request
          hyper::Request
          std::error::Request
          core::error::Request
  = help: consider importing one of these items instead:
          httparse::Response
          hyper::Response

error[E0599]: no function or associated item named `http` found for struct `Server` in the current scope
 --> examples\formdata.rs:8:24
  |
8 |   let server = Server::http("0.0.0.0:0").unwrap().handle(handler).unwrap();
  |                        ^^^^ function or associated item not found in `Server<_, _, _>`
hey there, I'm actually looking to do multipart parsing via stdin and don't need the hyper service. Just wanted to let you know the example does not compile today using hyper 0.4.14. using the [Read Example](https://mikedilger.github.io/formdata/formdata/index.html#read-example) ``` error[E0432]: unresolved imports `hyper::server::Request`, `hyper::server::Response` --> examples\formdata.rs:5:29 | 5 | use hyper::server::{Server, Request, Response}; | ^^^^^^^ ^^^^^^^^ no `Response` in `server` | | | no `Request` in `server` | = help: consider importing one of these items instead: httparse::Request hyper::Request std::error::Request core::error::Request = help: consider importing one of these items instead: httparse::Response hyper::Response error[E0599]: no function or associated item named `http` found for struct `Server` in the current scope --> examples\formdata.rs:8:24 | 8 | let server = Server::http("0.0.0.0:0").unwrap().handle(handler).unwrap(); | ^^^^ function or associated item not found in `Server<_, _, _>` ```
mikedilger commented 2023-09-30 06:55:55 +13:00 (Migrated from github.com)

Closing to to archival status

Closing to to archival status
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mikedilger/formdata#40
No description provided.