• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperium / hyper
85%
master: %

Build:
Build:
LAST BUILD BRANCH: h2
DEFAULT BRANCH: master
Repo Added 06 May 2015 02:16AM UTC
Files 0
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH tokio
branch: tokio
CHANGE BRANCH
x
Reset
  • tokio
  • 0.10.x
  • 0.6.4
  • 0.9.x
  • 640-invalid-response
  • 715-buffer-grow-error
  • 740
  • 774-proxy-host
  • 794-windows-no-verify
  • 822
  • 831-client-request-end
  • 843-add-transport-to-server-request
  • allow-proxy
  • body-concat
  • cherry-lasteventid
  • cherry-origin
  • client-proxy
  • client-query
  • client-request-uri
  • client-response-url
  • client-timeout-panic
  • clippy
  • conn-close
  • cookie
  • cov-integration-tests
  • demut-connector
  • deprecate-proto
  • deps
  • dispatch-write-queued
  • docs-deploying
  • docs-generation-fix
  • doxup
  • drop-res
  • enc-dec-get-ref
  • ergo
  • error-rename
  • fix-docs
  • fix-win-x86-nounwind
  • flush
  • form-url-encoded
  • from-message
  • gen-guide
  • guide
  • guide-server
  • guide-styles
  • head-responses
  • header-convenient-constructors
  • header-multiline
  • header-tm!
  • headers-mem-slice
  • headers-raw
  • headers-vec-map
  • http-connector-enforce-scheme
  • http-date-system-time
  • http-versions
  • http10-keep-alive
  • idle-timeout
  • issue-543
  • keep-alive
  • keep-alive-timeout
  • less-deps
  • logs
  • master
  • mio
  • more-on-errors
  • multi-threaded-hello
  • next-uri
  • nightly-fixes
  • no-content
  • nonexhaustive-error
  • openssl-ciphers
  • openssl-opts
  • openssl-verify
  • outgoing-generic
  • park-less
  • parse-till-blocked
  • per-tag-docs
  • perf
  • perf-up
  • pool-clean-parked
  • pool-mutex-race
  • pr/833
  • promote-timeouts
  • pub-control-error
  • quality
  • raw-status
  • readme-tests
  • remove-deprecated
  • res-send
  • rm-pool
  • rotor
  • run-until-unit
  • rust-min-version
  • server-keep-alive
  • server-request-ssl
  • ssl
  • ssl-and-cookie-up
  • ssl-direct-streams
  • timeout
  • tokio-squash
  • un-url
  • unflaky
  • unicase
  • unproto
  • unsudo
  • uri-fixes
  • uri-memslice
  • v0.10.0
  • v0.10.1
  • v0.10.10
  • v0.10.11
  • v0.10.12
  • v0.10.2
  • v0.10.3
  • v0.10.4
  • v0.10.6
  • v0.10.7
  • v0.10.8
  • v0.10.9
  • v0.11.0
  • v0.11.1
  • v0.11.10
  • v0.11.11
  • v0.11.12
  • v0.11.2
  • v0.11.3
  • v0.11.4
  • v0.11.5
  • v0.11.6
  • v0.11.7
  • v0.11.8
  • v0.11.9
  • v0.4.0
  • v0.5.0
  • v0.5.1
  • v0.5.2
  • v0.6.0
  • v0.6.1
  • v0.6.10
  • v0.6.11
  • v0.6.12
  • v0.6.13
  • v0.6.14
  • v0.6.15
  • v0.6.16
  • v0.6.2
  • v0.6.3
  • v0.6.7
  • v0.6.8
  • v0.6.9
  • v0.7.0
  • v0.7.1
  • v0.7.2
  • v0.8.0
  • v0.8.1
  • v0.9.0
  • v0.9.1
  • v0.9.10
  • v0.9.11
  • v0.9.12
  • v0.9.13
  • v0.9.14
  • v0.9.15
  • v0.9.16
  • v0.9.17
  • v0.9.18
  • v0.9.2
  • v0.9.3
  • v0.9.4
  • v0.9.5
  • v0.9.6
  • v0.9.7
  • v0.9.8
  • v0.9.9
  • zero-buf

pending completion
2431

Pull #1012

travis-ci

web-flow
Refactor the server module

This commit refactors the `server` module as we discussed a bit offline.
The main changes are:

* The entry point is how `Http`, the implementation of `ServerProto`.
  This type has a `new` constructor as well as builder methods to
  configure it.

* A high-level entry point of `Http::bind` was added which returns a
  `Server`. Binding a protocol to a port requires a socket address
  (where to bind) as well as the instance of `NewService`. Internally
  this creates a core and a TCP listener.

* The returned `Server` has a few methods to learn about itself, e.g.
  `local_addr` and `handle`, but mainly has two methods: `run` and
  `run_until`.

* The `Server::run` entry point will execute a server infinitely, never
  having it exit.

* The `Server::run_until` method is intended as a graceful shutdown
  mechanism. When the provided future resolves the server stops
  accepting connections immediately and then waits for a fixed period of
  time for all active connections to get torn down, after which the
  whole server is torn down anyway.

* Finally a `Http::bind_connection` method exists as a low-level entry
  point to spawning a server connection. This is used by `Server::run`
  as is intended for external use in other event loops if necessary or
  otherwise low-level needs.
Pull Request #1012: Refactor the server module

3554 of 4160 relevant lines covered (85.43%)

1.92 hits per line

Relevant lines Covered
Build:
Build:
4160 RELEVANT LINES 3554 COVERED LINES
1.92 HITS PER LINE
Source Files on tokio
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
2431 tokio Refactor the server module This commit refactors the `server` module as we discussed a bit offline. The main changes are: * The entry point is how `Http`, the implementation of `ServerProto`. This type has a `new` constructor as well as builde... Pull #1012 17 Jan 2017 11:08PM UTC web-flow travis-ci pending completion  
2430 tokio Refactor the server module This commit refactors the `server` module as we discussed a bit offline. The main changes are: * The entry point is how `Http`, the implementation of `ServerProto`. This type has a `new` constructor as well as builde... Pull #1012 17 Jan 2017 10:35PM UTC web-flow travis-ci pending completion  
2427 tokio Merge pull request #1011 from kornholi/heap-corruption-fix Fix heap corruption in http::buffer::grow_zerofill push 16 Jan 2017 10:18PM UTC web-flow travis-ci pending completion  
2420 tokio remove dev-dependency on hyper-tls push 16 Jan 2017 06:00PM UTC seanmonstar travis-ci pending completion  
2415 tokio replace a usage of oneshot with relay push 14 Jan 2017 05:47PM UTC seanmonstar travis-ci pending completion  
2413 tokio switch client from using uri to url push 14 Jan 2017 07:23AM UTC seanmonstar travis-ci pending completion  
2410 tokio refactor(header): Host header internals made private This allows us to improve the performance. For now, a Cow is used internally, so clients can set the host to a static value and no longer need copies. Later, we can change it to also possibly ... push 13 Jan 2017 11:36PM UTC seanmonstar travis-ci pending completion  
2409 tokio fix server tests push 13 Jan 2017 09:06PM UTC seanmonstar travis-ci pending completion  
2391 tokio feat(headers): Add support for Retry-After header This used to be an external crate, which seem to be abandoned and stuck with Hyper 0.7. https://github.com/jwilm/retry-after I think it would be better to include it with Hyper and I'm willing to... Pull #998 11 Jan 2017 03:54PM UTC web-flow travis-ci pending completion  
2390 tokio feat(headers): Add support for Retry-After header This used to be an external crate, which seem to be abandoned and stuck with Hyper 0.7. https://github.com/jwilm/retry-after I think it would be better to include it with Hyper and I'm willing to... Pull #998 11 Jan 2017 01:13PM UTC web-flow travis-ci pending completion  
See All Builds (1983)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc