Skip to content

Add support for preserveHeaderCase #609

Open
@natebosch

Description

@natebosch

On the SDK we now have an option to pass preserveHeaderCase when setting Http headers to work around the default behavior of converting them all to lowercase. Some (non spec compliant?) servers expect headers with specific capitalization.

I don't know if there is any equivalent behavior or concern on the web.

Some design options:

  • An argument when constructing an IOClient to make the decision once at a client level.
    • Pro: Non breaking.
    • Con: Could be clumsy to use - cross platform code can't reference IOClient, may need to construct a specific client for some requests and a different client for others.
  • Add a named argument to all APIs.
    • Pro: fine-grained control by request.
    • Con: If the behavior can't be supported on the web we'd have to ignore the argument.
  • Preserve header case on the VM by default with no option to switch.
    • Con: Potentially breaking behavior change for existing users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-breaking-releaseIssues that are worth doing but need to wait for a breaking version bumptype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions