@@ -277,9 +277,9 @@ function retryable end
277277supportsmark (x) = false
278278supportsmark (x:: T ) where {T <: IO } = length (Base. methods (mark, Tuple{T}, parentmodule (T))) > 0 || hasfield (T, :mark )
279279
280- # request body is retryable if it was provided as "bytes", a Dict or NamedTuple,
280+ # request body is retryable if it was provided as "bytes", an AbstractDict or NamedTuple,
281281# or a chunked array of "bytes"; OR if it supports mark() and is marked
282- retryablebody (r:: Request ) = (isbytes (r. body) || r. body isa Union{Dict , NamedTuple} ||
282+ retryablebody (r:: Request ) = (isbytes (r. body) || r. body isa Union{AbstractDict , NamedTuple} ||
283283 (r. body isa Vector && all (isbytes, r. body)) || (supportsmark (r. body) && ismarked (r. body)))
284284
285285# request is retryable if the body is retryable, the user is allowing retries at all,
@@ -581,7 +581,7 @@ const BODY_SHOW_MAX = Ref(1000)
581581The first chunk of the Message Body (for display purposes).
582582"""
583583bodysummary (body) = isbytes (body) ? view (bytes (body), 1 : min (nbytes (body), BODY_SHOW_MAX[])) : " [Message Body was streamed]"
584- bodysummary (body:: Union{Dict , NamedTuple} ) = URIs. escapeuri (body)
584+ bodysummary (body:: Union{AbstractDict , NamedTuple} ) = URIs. escapeuri (body)
585585function bodysummary (body:: Form )
586586 if length (body. data) == 1 && isa (body. data[1 ], IOBuffer)
587587 return body. data[1 ]. data[1 : body. data[1 ]. ptr- 1 ]
0 commit comments