Files
kubernetes/pkg
Clayton Coleman d072232d4a Allow client.Config to be used for HTTP2 and WebSocket connections
client.Config describes how to make a client connection to a server
for HTTP traffic, but for connection upgrade scenarios cannot be
used because the underlying http.Transport object can't allow the
connection to be hijacked. Reorganize the TLS and connection wrapper
methods so that a sophisticated client can do:

    cfg := &client.Config{...} // from somewhere
    tlsConfig, _ := client.TLSConfigFor(cfg)
    _ := conn.Dial(...)
    rt := MyRoundTripper() // some func that implements grabbing requests
    wrapper, _ := client.HTTPWrappersFor(cfg)
    req := &http.Request{}
    req.Header.Set("Connection-Upgrade", ...)
    _, := wrapper.RoundTrip(req)
    // rt has been invoked with a fully formed Req with auth
    rt.Req.Write(conn)
    // read response for upgrade

It would be good to have utility function that does more of this,
but mostly enabling the HTTP2/SPDY client exec function right now.
2015-01-29 17:43:09 -05:00
..
2014-09-16 15:19:02 -07:00
2015-01-15 12:02:22 -08:00
2014-11-02 22:26:45 -08:00
2014-12-19 12:28:51 -08:00
2015-01-28 16:11:34 -08:00
2015-01-28 15:07:00 -08:00
2015-01-28 15:03:19 -05:00
2015-01-26 22:42:29 -08:00
2015-01-27 09:29:40 -05:00
2015-01-14 15:22:21 -08:00
2015-01-28 16:11:34 -08:00
2015-01-20 19:50:24 -08:00