summaryrefslogtreecommitdiff
path: root/internal/http
AgeCommit message (Collapse)Author
2026-02-12All: Rename packages that sound useless or clash with stdJeroen Wijenbergh
2025-09-02client: Log more in debug and increase rotation to 10MBJeroen Wijenbergh
2024-11-21Replace all links from GitHub to Codebergjwijenbergh
2024-10-28API + HTTP + Exports: Cleaner TLS1.3 enforcement using a custom DefaultTransportjwijenbergh
Also fix where TLS 1.3 was not properly enforced for the endpoint cache
2024-10-11HTTP + OAuth API: Enforce TLS >= 1.3jwijenbergh
2024-07-17Discovery: Implement conditional requestsjwijenbergh
From docs.eduvpn.org (https://docs.eduvpn.org/server/v3/server-discovery.html): When fetching the new JSON files, the client SHOULD use conditional requests, so the file is only fetched in case there were changes. This, in order to reduce the amount of traffic required by VPN clients, especially relevant for metered, or slow connections. The If-Modified-Since request header SHOULD be used for this. If the response code is 304, the file hasn’t changed since. The value to use for the If-Modified-Since request header is the exact value of the Last-Modified response header for the last successful download, i.e. 200 response. You SHOULD store the value of Last-Modified and use it as-is for the If-Modified-Since header.
2024-02-19All: Document everything to pass revive lintjwijenbergh
2024-02-19HTTP: Make NewClient accept an underlying http clientjwijenbergh
if the argument is nil, a fresh one is automatically created
2024-02-19HTTP: Fix register agent to include version packagejwijenbergh
2024-02-19All: Prepare to get rid of go-errors/errors libjwijenbergh
2024-02-19HTTP: Make sure to add all headersjwijenbergh
Now needed as we do some of the header code differently. Previously it worked because e.g. the accept header had one value that was capitalized
2024-02-19i18nerr + HTTP: Properly convert timeout errorsjwijenbergh
2023-09-25Version: Update to 2.0.0jwijenbergh
2023-09-25HTTP: Pass context around and optionally trail path in urljwijenbergh
2023-09-01Version: Update to 1.1.21.1.2jwijenbergh
2023-08-29Version: Update to 1.1.11.1.1jwijenbergh
2023-04-18Version: Update to 1.1.01.1.0jwijenbergh
2023-03-01Version: Update to 1.0.0jwijenbergh
2023-03-01Version: Downgrade to 0.99.0jwijenbergh
2023-03-01Format: Run black and gofumptjwijenbergh
2023-03-01Client + Exports + HTTP: Set a user-agent using the client's versionjwijenbergh
2023-02-17HTTP: Fix test for joining path by removing trailing slashjwijenbergh
2023-02-17HTTP: Only add trailing slash for ensuring valid URLjwijenbergh
2023-02-16HTTP: Add test for ensuring valid URLjwijenbergh
2023-02-16Format: Run gofumptjwijenbergh
2023-02-16HTTP: Implement join URL pathjwijenbergh
2023-02-16HTTP: Incorporate util ensure valid url with clean pathjwijenbergh
2023-01-31HTTP + Util: Always set the scheme to HTTPSjwijenbergh
2023-01-13HTTP: Make the timeout configurable per request using a contextjwijenbergh
2023-01-12HTTP: Set default timeout to 10 secondsjwijenbergh
2023-01-06Refactor: Re-use a HTTP clientjwijenbergh
2023-01-05HTTP: Set max read limit to 16MBjwijenbergh
2022-12-12simplify error handlingAleksandar Pesic
fixes #6 Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com>
2022-11-28Linter: Fix dupword errorsjwijenbergh
2022-11-28Refactor: Fix revive linter errors by deleting redundant prefixesjwijenbergh
2022-11-28Lint: Run godot fixjwijenbergh
Full command: golangci-lint run --disable-all -E godot --fix
2022-11-28Document: Add comments for most functions and packagesjwijenbergh
Errors and test files still need to be done. Also some getters are changed by removing the 'get' prefix
2022-11-24Style: Use stylecheck and fix errorsjwijenbergh
2022-11-10HTTP: Fix typo in status errorjwijenbergh
2022-10-19Refactor: Make errors use the parent's error leveljwijenbergh
- All wrapped errors have to be created with types.NewWrappedError to inherit the error level from the parent - Or types.NewWrappedErrorLevel can be used which means a custom error level is given. For example this is done with cancelling OAuth - Client public errors are forwarded with handleError that also logs it with the error's level
2022-10-13Format: Run gofumptjwijenbergh
2022-09-26HTTP: Add the body to status errorjwijenbergh
2022-09-26Refactor: Errors into custom export types and expose typesjwijenbergh
2022-09-20Module: Move to eduvpn/eduvpn-commonjwijenbergh
2022-09-19API + HTTP: Set the /disconnect timeout to 1 secondjwijenbergh
2022-08-23Formatting: Run golinesjwijenbergh
2022-08-19HTTP: Set a default timeout of 5 secondsjwijenbergh
2022-06-20Refactor: Errors to have one custom type that is to be wrappedjwijenbergh
- For this an `internal/types` package is created with a custom error type - This custom error type can give back the cause and traceback of an error
2022-09-20Server: Implement function for checking renewal button visibilityjwijenbergh