Skip to content

Not possible to enumerate multiple instances of a HTTPResponse header. #47

@ghost

Description

When a HTTPResponse contains multiple headers, it is not possible to write a response filter that re-writes those headers, as HTTPResponse.header(_ named: HTTPResponseHeader.Name) -> String? only exposes the first instance of the header.

This is a problem for example when one wants to re-write cookies in a response filter, as there could be multiple Set-Cookie headers in the response.

Likewise, it is not possible to delete a header in a response filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions