Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookies 1.0 api #217

Merged
merged 26 commits into from
Jul 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import static com.hotels.styx.api.HttpHeaderNames.CONTENT_LENGTH;
import static com.hotels.styx.api.HttpHeaderNames.CONTENT_TYPE;
import static com.hotels.styx.api.support.CookiesSupport.findCookie;

/**
* All behaviour common to both full requests and full responses.
Expand All @@ -43,13 +42,6 @@ public interface FullHttpMessage {
*/
HttpHeaders headers();

/**
* Return all cookies in this response.
*
* @return all cookies.
*/
List<HttpCookie> cookies();

/**
* Returns the body of this message in its unencoded form.
*
Expand Down Expand Up @@ -89,16 +81,6 @@ default List<String> headers(CharSequence name) {
return headers().getAll(name);
}

/**
* Return the single cookie with the specified {@code name}.
*
* @param name cookie name
* @return the cookie if present
*/
default Optional<HttpCookie> cookie(String name) {
return findCookie(cookies(), name);
}

/**
* Return the {@code 'Content-Length'} header value.
*
Expand Down
Loading