HTTP.jl
HTTP.jl copied to clipboard
HTTP for Julia
Hi, I've used this construction [1] for what feels like years now and it works great. But now I'm trying to handle scenarios where url isn't immediately available. Here's what...
[Found by ZeroPath and manually checked by me] https://github.com/JuliaWeb/HTTP.jl/blob/e7feb99bf1d4165c7e3e28171eefeb7652ec2773/src/clientlayers/RedirectRequest.jl#L44-L45 https://github.com/JuliaWeb/HTTP.jl/blob/e7feb99bf1d4165c7e3e28171eefeb7652ec2773/src/clientlayers/RedirectRequest.jl#L69-L74 if there's a header like `authorization`, we would misjudge it as being not sensitive and forward it, which is a...
Sometimes the server tells you how long to wait before you can retry with a response header, e.g. with GitHub's API: https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#exceeding-the-rate-limit However, the HTTP client code lets us pass...
Seeing this intermittently, but don't know what causes it: ``` Unhandled Task ERROR: ArgumentError: stream not initialized Stacktrace: [1] isopen @ ./stream.jl:376 [inlined] [2] wait_readnb(x::Sockets.TCPSocket, nb::Int64) @ Base ./stream.jl:406 [3]...
Note, written by Claude, hence the draft. ---- Fixes #1165 ## Problem When using `response_stream` with HTTP requests that involve redirects, both the redirect response body AND the final response...
Hi! I was wondering if there is any other reason than legacy for using `@async` in the `listenloop` under `Servers.jl` ? https://github.com/JuliaWeb/HTTP.jl/blob/537f50ce28d702a58f60ee4fabde1b704991f481/src/Servers.jl#L399-L407 It feels like we should be able to...
This happened to me while using `LocalPackageServer`, though it may be related to the Compat bound in that package being too high. I am using Julia v1.11. 
Unfortunately `HTTP.jl` doesn't work for me right now with custom CA certificates. I cannot query internal urls at my employer, nor do more complicated things. ```julia julia> r = HTTP.request("GET",...
link is not generating
The `request`-based functions (e.g. `HTTP.get`) accept the `URI` type for the `url` argument, but the `download` function currently only accepts strings. This (tiny) change allows `URI`s there too.