Skip to content

Restore cookie capabilities #854

@Kaliumhexacyanoferrat

Description

@Kaliumhexacyanoferrat

Try to use only extension methods, as they are basically headers.

// reading, should work for both multiple headers as well as multiple values in one header
var cookieValue = request.Header.Headers.GetCookie(...); // string or ByteString

var cookies = request.Header.Headers.GetCookies(); // allocates

// writing
response.Cookie("Key", "Value", maxAge: DateTime.UtcNow.AddDays(30)); // additional switches

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingImplementing this will cause a breaking change so it can only be part of major releases.enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions