def redirect.follows
import emerging-ezhttp@0.21.0.0/src/redirect.bend as Redirectimport 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"))