Skip to content

Go 1.7 #40

Description

@ejholmes

Go 1.7 brings native support for context.Context, most importantly within net/http. We should make appropriate changes to pkg/httpx to use the standard http.Handler interface.

The major advantage will be that we can use any http.Handler middleware/router (e.g. negroni, gorilla mux), without having to re-implement it to support the httpx.Handler interface.

Also, for outgoing requests, http.Request now natively supports cancellations from the context (e.g. _ cancel := context.WithCancel(req.Context()); cancel()) so we no longer have to re-implement http.Client.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions