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

yarpc / yarpc-go / 3630
81%
master: %

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 27 Dec 2016 09:23PM UTC
Jobs 2
Files 125
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
3630

push

travis-ci

web-flow
Delete yarpc.Headers (#661)

With the Req/ResMeta deletion, the user-facing API for sending request headers
is `yarpc.WithHeader`,

    client.Call(
        ..., yarpc.WithHeader("foo", "bar"), yarpc.WithHeader("baz", "qux"))

And the API for receiving request headers in handlers is
`yarpc.CallFromContext` with the `Header(k string) string` function.

    call := yarpc.CallFromContext(ctx)
    call.Header("foo")

    for _, k := range call.HeaderNames() {
        fmt.Println(call.Header(k))
    }

The only place we still use `yarpc.Headers` is to receive response headers for
outgoing calls:

    var h yarpc.Headers
    client.Call(..., yarpc.ResponseHeaders(&h))

This switches that to `map[string]string`, allowing us to drop the
`yarpc.Headers` type compeletely.

6053 of 7161 relevant lines covered (84.53%)

1.8 hits per line

Jobs
ID Job ID Ran Files Coverage
3 3630.3 (TYPE=test) 27 Dec 2016 09:23PM UTC 0
84.53
Travis Job 3630.3
4 3630.4 (TYPE=test) 27 Dec 2016 09:24PM UTC 0
84.49
Travis Job 3630.4
Source Files on build 3630
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3630
  • 95e002c7 on github
  • Prev Build on dev (#3622)
  • Next Build on dev (#3634)
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

© 2026 Coveralls, Inc