http.field-get-from
- description
- http.field-get from index (lowercase_name is in lowercase)
- type
Fn(fields: List<@http.field>, lowercase_name: String, index: Number) -> Union{#none, #some(String)}
- expression
fn(fields$0, lowercase_name$1, index$2) => match @core.list-get(list: $0, index: $2) { #none(_) => #none, #some(field$3) => match @core.equal(left: @std.ascii-lowercase(value: $3.name), right: $1) { true => #some($3.value), false => @http.field-get-from(fields: $0, lowercase_name: $1, index: @core.plus(left: $2, right: 1)) } }
- visibility
- public
http.field-get-from (project http, branch main, snapshot FuOge41aUHwwPZkx2JW6O-Emair6Jc-D5YsZf5cx6b0) id: CYUb-NCASjmqI2rkJ2bdmBDBgRN2YeE85WwAn7ze3nI content hash: JBMQC8La2HP6PW27Xzf8nvMWhBIXGY_u5WoscoBnUsY