1 package com.griddynamics.jagger.invoker.v2;
3 import static java.util.stream.Collectors.toMap;
5 import org.springframework.http.HttpHeaders;
6 import org.springframework.http.HttpStatus;
8 import java.io.Serializable;
18 public class JHttpResponse<T>
implements Serializable {
20 private HttpStatus status;
22 private HttpHeaders headers;
27 this.headers = headers;
43 return headers.get(
"Cookie").stream()
44 .map(cookieStr -> cookieStr.split(
"="))
45 .collect(toMap(cookieArr -> cookieArr[0], cookieArr -> cookieArr[1]));
50 return "JHttpResponse{" +
53 ", headers=" + headers +