def redirect.follows

emerging-ezhttp@0.21.0.0 · src/redirect.bend:300

import emerging-ezhttp@0.21.0.0/src/redirect.bend as Redirect
import Base

300# whether a request with this method follows redirects when asked to: only a
301# GET does (method names are case-sensitive, RFC 9110 §9.1)
302def redirect.follows(+method: String, follow: Bool) -> Bool:
303  Bool.and(follow, String.eq(method, "GET"))

Uses (4)

Used by (1)