You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/http_client.jl
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2027,11 +2027,11 @@ Keyword arguments:
2027
2027
fallback when neither is provided
2028
2028
- `retry`: overall toggle for high-level request retries; lower-level reused-connection transport retries still happen independently
2029
2029
- `retries`: maximum number of retry attempts after the initial request attempt
2030
-
- `retry_non_idempotent`: allow automatic retries for methods like `POST`/`PATCH`; `PUT` and `DELETE` are already treated as idempotent
2030
+
- `retry_non_idempotent`: allow automatic retries for methods like `POST`/`PATCH`; `QUERY`, `PUT`, and `DELETE` are already treated as idempotent
2031
2031
- `retry_if`: optional callback `(attempt, err, req, resp) -> Bool | nothing`; request-path failures are passed as `RequestRetryError` so implementations can inspect `err.err`, while response-based retry checks pass `err = nothing` and `resp = response`; `true` forces a retry when the request body is replayable, `false` suppresses retry, and `nothing` defers to built-in retry rules
2032
2032
- `respect_retry_after`: honor server `Retry-After` on retryable `429`/`503` responses
2033
2033
- `retry_bucket`: `true` uses the request transport's default `RetryBucket`, `false` disables bucket coordination, and a custom `RetryBucket` overrides the transport default
2034
-
- automatic retries only occur for replayable request bodies; built-in policy retries idempotent methods (`GET`, `HEAD`, `OPTIONS`, `TRACE`, `PUT`, `DELETE`) plus requests carrying `Idempotency-Key`/`X-Idempotency-Key`
2034
+
- automatic retries only occur for replayable request bodies; built-in policy retries idempotent methods (`GET`, `HEAD`, `OPTIONS`, `TRACE`, `QUERY`, `PUT`, `DELETE`) plus requests carrying `Idempotency-Key`/`X-Idempotency-Key`
2035
2035
- `status_exception`: throw `StatusError` for non-success responses
2036
2036
- `redirect`: follow redirects through `do!`
2037
2037
- `redirect_limit`: maximum number of redirects to follow for this call;
Copy file name to clipboardExpand all lines: src/http_client_redirect.jl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ function _normalize_redirect_method_override(redirect_method)::Tuple{Union{Nothi
20
20
redirect_method ==:same&&returnnothing, true
21
21
redirect_method isa AbstractString || redirect_method isa Symbol ||throw(ArgumentError("redirect_method must be nothing, :same, or an HTTP method String/Symbol"))
22
22
method =uppercase(String(redirect_method))
23
-
method in ("GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH") ||throw(ArgumentError("redirect_method must be one of GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH, or :same"))
23
+
method in ("GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH", "QUERY") ||throw(ArgumentError("redirect_method must be one of GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH, QUERY, or :same"))
24
24
return method, false
25
25
end
26
26
@@ -227,7 +227,7 @@ function _rewrite_method_for_redirect(method::String, status::Int, policy::_Redi
0 commit comments