addHeader()

in bindings/xlb/src/edge_binding.ts [213:223]


  addHeader(key: string, value: string) {
    this.headerMutation.setHeaders.push(
      create(HeaderValueOptionSchema, {
        header: {
          key: key,
          rawValue: new TextEncoder().encode(value),
        },
        appendAction: HeaderValueOption_HeaderAppendAction.OVERWRITE_IF_EXISTS_OR_ADD,
      }),
    );
  }