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

hyperium / hyper / 2143
89%
master: %

Build:
Build:
LAST BUILD BRANCH: h2
DEFAULT BRANCH: master
Ran 21 Jul 2016 10:59PM UTC
Jobs 2
Files 47
Run time 1min
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

pending completion
2143

push

travis-ci

seanmonstar
feat(header): introduce header::Raw

The Raw type repesents the raw bytes of a header-value.

Having a special type allows a couple of benefits:

- The exact representation has become private, allowing "uglier"
internals. Specifically, since the common case is for a header to only
have 1 line of bytes, an enum is used to skip allocating a Vec for only
1 line. Additionally, a Cow<'static, [u8]> is used, so static bytes
don't require a copy. Finally, since we can use static bytes, when
parsing, we can compare the incoming bytes against a couple of the most
common header-values, and possibly remove another copy.

- As its own type, the `Headers.set_raw` method can be generic over
`Into<Raw>`, which allows for more ergnomic method calls.

BREAKING CHANGE: `Header::parse_header` now receives `&Raw`, instead of
  a `&[Vec<u8>]`. `Raw` provides several methods to ease using it, but
  may require some changes to existing code.

2655 of 2983 relevant lines covered (89.0%)

4.68 hits per line

Jobs
ID Job ID Ran Files Coverage
4 2143.4 21 Jul 2016 11:00PM UTC 0
89.0
Travis Job 2143.4
5 2143.5 (FEATURES="--no-default-features") 21 Jul 2016 10:59PM UTC 0
88.97
Travis Job 2143.5
Source Files on build 2143
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #2143
  • dacee8a1 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