Mislav Marohnić
162a1b290a
Allow caching HTTP 204 responses
2021-03-01 16:04:34 +01:00
Mislav Marohnić
3ddd93793c
Port issue create to using templates API
2021-02-10 17:32:00 +01:00
Josh Soref
e5f59a15fe
spelling: response
2020-11-21 21:43:51 -05:00
Mislav Marohnić
7663acdc29
Improve HTTP caching layer
...
- make thread-safe
- only cache GET, HEAD, and GraphQL requests
- only cache non-5xx, non-403 responses
- include `Accept` and `Authorization` headers in cache key
2020-10-02 15:19:40 +02:00
Mislav Marohnić
f7a82a216b
Avoid error from cache file being prematurely closed
...
I have no idea what's going on there, so I'll just give up the streaming
approach and read the entire contents of the cache file to memory.
https://github.com/cli/cli/pull/2035/checks?check_run_id=1194798056
2020-10-01 22:06:15 +02:00
Mislav Marohnić
1d435a3e2e
Ensure that cache file is closed after reading
2020-10-01 19:18:11 +02:00
Mislav Marohnić
93c8fc1e98
Add tests for GraphQL introspection
2020-10-01 16:33:56 +02:00
Mislav Marohnić
0ef2863ede
Cache GHE responses for schema queries
...
This speeds up `pr`-related commands for GHE by caching schema
introspection queries for 24h.
2020-09-30 19:09:15 +02:00