Skip to content

HTTP cookie abstraction [SPR-14160] #18732

@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-14160 and commented

Provide common abstraction for access to HTTP cookies to avoid direct dependency on underlying runtime APIs (Servlet 3.1, Reactor IO, RxNetty, Undertow) for the same. The abstractions should clearly separate HttpCookie (a basic name-value pair) from a ResponseCookie (the cookie sent in a server response with additional policy attributes).

To reflect the asymmetry of HttpCookie (sent by clients and received by servers) vs ResponseCookie (sent by servers and received clients) it may be best to expose them through the client and server HTTP request and response. Furthermore that reflects the fact we are not directly parsing cookie headers but rather adapting to underlying client and server cookie-related APIs. In turn, HttpEntity and ResponseEntity will also need to expose cookie information.


Affects: 4.2.5

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions