def method.of

emerging-ezhttp@0.21.0.0 · src/http.bend:1108

import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import Base

1108# the method token, or "" when the request did not parse
1109def method.of(req: Request) -> String:
1110  match req:
1111    case Bad{why}:
1112      ""
1113    case Request{method, target, headers, body}:
1114      method

Uses (2)

Used by (1)