def classify

bendonnect-rpc@0.1.0.0 · src/protocol.bend:581

import bendonnect-rpc@0.1.0.0/src/protocol.bend as Protocol
import Base

581# Classifies a request. method is "POST"/"GET"; query is the raw query string (no '?').
582def classify(+method: String, +path: String, +query: String, +headers: Map<&2, List<&2, String>>, +prefix: String) -> Result<&2, &1, Reject, Spec>:
583  route(String.eq(method, "POST"), String.eq(method, "GET"), path, query, headers, prefix)

Uses (8)

Used by (1)