aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/http/transport.go
Commit message (Collapse)AuthorAgeFilesLines
* plumbing: Replace short field names with more descriptive ones.Matej Risek2023-11-191-6/+6
| | | | | The decision to change the name of these fields came from reading the code further down in the scope and not being clear what `c.c` means.
* plumbing: transport/http, add support for custom proxy URLsSanskar Jaiswal2023-05-041-0/+2
| | | | | | | | | | | | | | Add support for custom HTTP and HTTPS proxies for each session. The tests require server certificate and a matching private key to be able to run a TLS server and test HTTPS proxy functionality. The cert and the key are stored in `plumbing/transport/http/testdata/certs` and were generated using the following command: `openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt` Note: All details were left empty, except for the FQDN for which example.com was used. Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
* plumbing: transport/http, refactor transport to cache underlying transport ↵Sanskar Jaiswal2023-05-041-0/+38
objects Refactor the in-built http transport to cache the underlying http transport objects mapped to its specific options for each Git transport object. This lets us reuse the transport for a specific set of configurations as recommended. (ref: https://pkg.go.dev/net/http#Transport) If there are no transport specific options provided, the default transport is used. Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>