rust-may / may_http Goto Github PK
View Code? Open in Web Editor NEWCoroutine based HTTP library for Rust.
License: Apache License 2.0
Coroutine based HTTP library for Rust.
License: Apache License 2.0
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidInput, error: "Invalid chunk size line, unkonw byte" }', src\libcore\result.rs:1188:5
stack backtrace:
0: backtrace::backtrace::dbghelp::trace
at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.40\src\backtrace/dbghelp.rs:88
1: backtrace::backtrace::trace_unsynchronized
at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.40\src\backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src\libstd\sys_common/backtrace.rs:84
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
at src\libstd\sys_common/backtrace.rs:61
4: core::fmt::write
at src\libcore\fmt/mod.rs:1025
5: std::io::Write::write_fmt
at src\libstd\io/mod.rs:1426
6: std::sys_common::backtrace::_print
at src\libstd\sys_common/backtrace.rs:65
7: std::sys_common::backtrace::print
at src\libstd\sys_common/backtrace.rs:50
8: std::panicking::default_hook::{{closure}}
at src\libstd/panicking.rs:193
9: std::panicking::default_hook
at src\libstd/panicking.rs:210
10: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
11: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
12: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
13: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
14: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
15: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
16: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
17: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
18: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
19: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
20: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
21: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
22: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
23: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
24: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
25: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
26: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
27: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
28: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
29: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
30: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
31: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
32: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
33: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
34: <alloc::boxed::Box<F> as core::ops::function::Fn<A>>::call
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\liballoc/boxed.rs:1036
35: may::scheduler::filter_cancel_panic::{{closure}}
at C:\Users\mayn\.cargo\registry\src\github.com-1ecc6299db9ec823\may-0.3.17\src/scheduler.rs:48
36: std::panicking::rust_panic_with_hook
at src\libstd/panicking.rs:475
37: rust_begin_unwind
at src\libstd/panicking.rs:375
38: core::panicking::panic_fmt
at src\libcore/panicking.rs:84
39: core::result::unwrap_failed
at src\libcore/result.rs:1188
40: core::result::Result<T,E>::unwrap
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\libcore/result.rs:956
41: client::main
at examples/client.rs:26
42: std::rt::lang_start::{{closure}}
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\libstd/rt.rs:67
43: std::rt::lang_start_internal::{{closure}}
at src\libstd/rt.rs:52
44: std::panicking::try::do_call
at src\libstd/panicking.rs:292
45: __rust_maybe_catch_panic
at src\libpanic_unwind/lib.rs:78
46: std::panicking::try
at src\libstd/panicking.rs:270
47: std::panic::catch_unwind
at src\libstd/panic.rs:394
48: std::rt::lang_start_internal
at src\libstd/rt.rs:51
49: std::rt::lang_start
at /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196\src\libstd/rt.rs:67
50: main
51: _tmainCRTStartup
52: mainCRTStartup
53: unit_addrs_search
54: unit_addrs_search
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `target\debug\examples\client.exe` (exit code: 101)
we have a ref implementation from hyper
when not specified use the default configuration
this should be specified in the configuration
allow to config server name before start the http server
currently only use hard coded "Server: Example"
basically should have a keep-alive timeout configuration like default is 10s.
may use real local socket pairs for testing
maybe only supply a client connection, other library can use it to implement more advanced features like proxy and redirect
need publish to https://crates.io
so replace
may_http = { git = "https://github.com/rust-may/may_http.git" }
to
may_http = "0.0.1"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.