def request.line

gralha-http-core@0.1.0.0 · http.bend:232

import gralha-http-core@0.1.0.0/http.bend as Http
import Base

232def request.line(parts: List<&2, String>, headers: List<&2, Header>, body: String) -> Maybe<&2, Request>:
233  match parts:
234    case Con{m, Con{t, Con{v, Nil{}}}}:
235      Some{Request{m, t, v, headers, body}}
236    case _:
237      None{}

Uses (5)

Used by (1)