Openapi.req.put.at: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/openapi.bend as Openapi Lines 1169-1193 of ezmcp@0.1.0.0/src/openapi.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/src/openapi.bend&start_line=1169&end_line=1193 import Base import emerging-ezjson@1.2.0.0/src/value.bend as Value import emerging-ezhttp@0.21.0.0/src/http.bend as Http import emerging-ezhttp@0.21.0.0/src/qs.bend as Qs # a parameter's value put in a request: a path parameter filled into the # path (`fill`), a query parameter's pairs added to the query (`query`), a # header parameter a header field of its name in lower case and its text # (`plain`); a cookie parameter, or one of no known location, changes # nothing def req.put.at( place: Place, +name: String, val: Value.Json, path: String, pairs: List<&2, Qs.Kv()>, hs: List<&2, Http.Header> ) -> Req: match place: case InPath{}: Req{fill(path, name, val), pairs, hs} case InQuery{}: Req{path, List.append(&2, Qs.Kv(), pairs, query(name, val)), hs} case InHeader{}: Req{path, pairs, List.append(&2, Http.Header, hs, [Http.H{String.to_lower(name), plain(val)}])} case InCookie{}: Req{path, pairs, hs} case InNone{}: Req{path, pairs, hs} Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.to_lower https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=Header https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/qs.bend&name=Kv https://jend.leeeet.dev/definition.txt?path=emerging-ezjson@1.3.0.0/src/value.bend&name=Json https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=Place https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=Req https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=fill https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=plain https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/openapi.bend&name=query