src/transport-http.c


Log

Author Commit Date CI Message
Carlos Martín Nieto 887eaf4d 2011-09-23T17:36:37 Fix dev branch under MSVC In libgit2: Move an enum out of an int bitfield in the HTTP transport. In the parser: Use int bitfields and change some variable sizes to better fit thir use. Variables that count the size of the data chunk can only ever be as large as off_t. Warning 4127 can be ignored, as nobody takes it seriously anyway. From Emeric: change some variable declarations to keep MSVC happy. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Carlos Martín Nieto 4ee8418a 2011-09-21T22:14:09 http: get rid of the global state Move the header parsing state into the transport, making use of the existing bitfield. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Carlos Martín Nieto 7e08191a 2011-09-11T14:51:27 http: also store Content-Type if it's the last field When Content-Type is the last field, we only know when we can store it when we reach on_headers_complete. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Carlos Martín Nieto 5604f928 2011-09-11T14:42:31 http: store which service to expect Depending on what we want to do, we expect the Content-Type field to have different contents. Store which service to expect instead of hard-coding the string. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Carlos Martín Nieto 1b762900 2011-09-09T13:18:52 Implement ls-remote over smart HTTP Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Carlos Martín Nieto 3d975abc 2011-09-02T14:20:43 Add HTTP transport skeleton Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>