Commit Graph

11 Commits

Author SHA1 Message Date
Carlos Martín Nieto b63157de51 http: propagate error codes 2017-07-09 13:49:53 +02:00
Carlos Martín Nieto 6fe4f461f6 http: stream POST contents
This lets us stream the data straight from the creation of the packfile, instead
of having to buffer it all in memory.
2017-07-09 13:15:11 +02:00
Carlos Martín Nieto 2d54afed61 http: add casts 2017-07-09 13:15:11 +02:00
Carlos Martín Nieto 22da146353 http: set the proxy from the user-given options 2017-07-09 11:41:57 +02:00
Carlos Martín Nieto c5e6dc298e http: correct EOF from stream and do send out our buffered data 2017-07-09 11:41:57 +02:00
Carlos Martín Nieto 2aa2ae5150 fixup! http: call the credentials callback when facing a 401 2017-07-09 11:41:57 +02:00
Carlos Martín Nieto 1339ad1e71 http: add casts because Go doesn't believe in const 2017-07-09 11:41:57 +02:00
Carlos Martín Nieto e2eda97316 http: call the credentials callback when facing a 401
The test for now just tests that we can handle returning a `GIT_EUSER` if the
caller decides to abort.
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto e80ae1125a fixup! Add a managed HTTP(S) transport implementation 2017-07-09 11:41:57 +02:00
Carlos Martín Nieto c726f932db http: use an environment-provided proxy
We currently cannot ask the transport for its proxy settings, so for now we'll
use the one from the environment.
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto 1be680fdf0 Add a managed HTTP(S) transport implementation
This implements a "smart subtransport" which lets us implement just the I/O
portion and leave the Git Smart Protocol logic in the library.
2017-07-09 11:41:57 +02:00