• Brad Fitzpatrick's avatar
    http: introduce start of Client and ClientTransport · e0a2c5d4
    Brad Fitzpatrick authored
    Much yet to come, but this is a safe first step, introducing
    an in-the-future configurable Client object (where policy for
    cookies, auth, redirects will live) as well as introducing a
    ClientTransport interface for sending requests.
    
    The CL intentionally ignores everything around the creation
    and configuration of Clients and merely ports/wraps the old
    interfaces to/around Client/ClientTransport.
    
    R=rsc, dsymonds, nigeltao, bradfitzwork
    CC=golang-dev
    https://golang.org/cl/4182086
    e0a2c5d4
client.go 8.43 KB