aboutsummaryrefslogtreecommitdiff
path: root/request.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix remaining lintsSandro Jäckel2024-07-011-1/+1
|
* Fix gophercloud lint complainsSandro Jäckel2024-07-011-12/+12
|
* Fix remaining lintsSandro Jäckel2023-10-251-1/+1
|
* add Method, Target to type UnexpectedStatusCodeErrorStefan Majewsky2023-10-231-0/+14
|
* Fix linting errorsSandro Jäckel2022-10-281-3/+2
|
* Format with go 1.19Sandro Jäckel2022-10-261-9/+8
|
* do not mangle non-standard object pathsSandro Jäckel2022-02-071-1/+3
| | | | | | | | | | | | | | | | | If the object path contains multiple slashes back-to-back, these used to be wrongly merged by net.url.URL.String(). For example, account = "AUTH_aaa" container = "ccc" object = "foo///bar" would become something like https://swift.example.com/v1/AUTH_aaa/ccc/foo/bar With this change, we produce a more correct URL: https://swift.example.com/v1/AUTH_aaa/ccc/foo%2f%2f%2fbar
* fix obvious crashStefan Majewsky2018-07-261-1/+1
|
* support aborting requests with context.ContextStefan Majewsky2018-07-111-0/+6
|
* proof-read documentationStefan Majewsky2018-05-031-1/+1
|
* revamp the Headers APIStefan Majewsky2018-03-111-7/+27
| | | | | | | | | | | | | | | | | | 1. Move common methods of AccountHeaders, ContainerHeaders, ObjectHeaders into a base type Headers. 2. Fold Headers into RequestOptions to remove one of the two optional arguments on request methods. The new Headers.ToOpts() method offers a nice experience for users passing Headers to request methods. The Update() methods keep the explicit Headers argument since the Headers argument is not optional there. The only downside is that we lose a bit of type-safety because RequestOptions takes any Headers instance, so e.g. ContainerHeaders could be passed to Object.Upload(). I believe the benefits outweigh this problem.
* reorganize codeStefan Majewsky2018-02-191-6/+6
| | | | | | * Gophercloud dependencies move into subpackage gopherschwift. * Tests move into subpackage tests (to avoid import cycles). + Rename "Client" to "Backend".
* introduce Client interfaceStefan Majewsky2018-02-191-32/+6
|
* remove old cruftStefan Majewsky2018-02-171-14/+0
|
* ensure that response body is drainedStefan Majewsky2018-02-111-1/+8
|
* sketch out the initial Object APIStefan Majewsky2018-02-101-0/+3
|
* implement container listingStefan Majewsky2018-02-071-5/+17
| | | | Tests will follow sometime later this week.
* redesign the header APIStefan Majewsky2018-02-051-7/+11
| | | | | | I'm quite satisfied with this right now (though this doesn't say anything about how I feel about it tomorrow), but it's ugly that some guts (headers.Base) are exposed in the public API.
* build HTTP requests without ProviderClient.Request(), make tests workStefan Majewsky2018-02-041-17/+18
|
* finalize Account.Post() design, add initial account testsStefan Majewsky2018-01-301-14/+21
| | | | Failing right now because compileHeaders() is a stub.
* lay down the full Account APIStefan Majewsky2018-01-291-1/+4
|
* sketch out how requests could workStefan Majewsky2018-01-281-0/+161