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;
20 public class JHttpResponse<T>
implements Serializable {
22 private HttpStatus status;
24 private HttpHeaders headers;
29 this.headers = headers;
45 return headers.get(
"Cookie").stream()
46 .map(cookieStr -> cookieStr.split(
"="))
47 .collect(toMap(cookieArr -> cookieArr[0], cookieArr -> cookieArr[1]));
52 return "JHttpResponse{" +
55 ", headers=" + headers +