Skip to content

Rename CookieSpecs enum to StandardCookieSpec final class#197

Closed
michael-o wants to merge 1 commit intomasterfrom
cookiespecname-rework
Closed

Rename CookieSpecs enum to StandardCookieSpec final class#197
michael-o wants to merge 1 commit intomasterfrom
cookiespecname-rework

Conversation

@michael-o
Copy link
Copy Markdown
Member

Modeled after StandardCharsets, the new class indicates a non-exhaustive
list of standard cookie specifications by name supported by the HttpClient.
The previous enum suffered from two issues:

  • it was exhaustive implying that no more cookie specifications can be supported
  • its sole purpose was to contain an id for the declared cookie specification;
    the enum values theirselves were never used directly

@ok2c This also reuses the naming approach of HttpMultipartMode of symbolic names for
implementation behavior.

This closes #197

Modeled after StandardCharsets, the new class indicates a non-exhaustive
list of standard cookie specifications by name supported by the HttpClient.
The previous enum suffered from two issues:

* it was exhaustive implying that no more cookie specifications can be supported
* its sole purpose was to contain an id for the declared cookie specification;
  the enum values theirselves were never used directly

This also reuses the naming approach of HttpMultipartMode of symbolic names for
implementation behavior.

This closes #197
@michael-o michael-o requested a review from garydgregory January 6, 2020 11:58
Copy link
Copy Markdown
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michael-o
LGTM.

@michael-o michael-o closed this in 0812192 Jan 8, 2020
@michael-o michael-o deleted the cookiespecname-rework branch January 10, 2020 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants