GithubHelp home page GithubHelp logo

may_http's People

Contributors

xudong-huang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

may_http's Issues

error: "Invalid chunk size line, unkonw byte"

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)

add server name config

allow to config server name before start the http server
currently only use hard coded "Server: Example"

support basic client logic

maybe only supply a client connection, other library can use it to implement more advanced features like proxy and redirect

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.