Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszkuc committed May 17, 2024
1 parent 68c1678 commit 76530cb
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,30 +140,6 @@ public CallbackGraphQlHttpHandler(
}
}

// private static MultiValueMap<String, HttpCookie> initCookies(ServerRequest serverRequest) {
// MultiValueMap<String, Cookie> source = serverRequest.cookies();
// MultiValueMap<String, HttpCookie> target = new LinkedMultiValueMap<>(source.size());
// source
// .values()
// .forEach(
// cookieList ->
// cookieList.forEach(
// cookie -> {
// HttpCookie httpCookie = new HttpCookie(cookie.getName(),
// cookie.getValue());
// target.add(cookie.getName(), httpCookie);
// }));
// return target;
// }

// private static Map<String, Object> readBody(ServerRequest request) throws ServletException {
// try {
// return request.body(MAP_PARAMETERIZED_TYPE_REF);
// } catch (IOException ex) {
// throw new ServerWebInputException("I/O error while reading request body", null, ex);
// }
// }

private static MediaType selectResponseMediaType(ServerRequest serverRequest) {
for (MediaType accepted : serverRequest.headers().accept()) {
if (SUPPORTED_MEDIA_TYPES.contains(accepted)) {
Expand Down

0 comments on commit 76530cb

Please sign in to comment.