@Test public void testSetCookieHeader() throws URISyntaxException { HttpRequest nettyRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_0, HttpMethod.GET, "www.abc.com"); nettyRequest.headers() .add("Set-Cookie", "a,b,c"); nettyRequest.headers() .add("Set-Cookie", "d,e,f"); RecordedHttpRequestBuilder recordedHttpRequestBuilder = new RecordedHttpRequestBuilder(nettyRequest); Multimap<String, String> headers = recordedHttpRequestBuilder.getHeaders(); Assert.assertEquals(headers.size(), 2); Assert.assertTrue(headers.get("Set-Cookie").contains("a,b,c")); Assert.assertTrue(headers.get("Set-Cookie").contains("d,e,f")); }
Multimap<String, String> getHeaders() { return _headers; }
RecordedHttpMessageBuilder { Multimap<String, String> getHeaders() { return _headers; } }
RecordedHttpMessageBuilder { Multimap<String, String> getHeaders() { return _headers; } protected  RecordedHttpMessageBuilder(HttpMessage nettyHttpMessage); }
RecordedHttpMessageBuilder { Multimap<String, String> getHeaders() { return _headers; } protected  RecordedHttpMessageBuilder(HttpMessage nettyHttpMessage); void appendHttpContent(HttpContent chunk); void addHeaders(HttpMessage httpMessage); }
RecordedHttpMessageBuilder { Multimap<String, String> getHeaders() { return _headers; } protected  RecordedHttpMessageBuilder(HttpMessage nettyHttpMessage); void appendHttpContent(HttpContent chunk); void addHeaders(HttpMessage httpMessage);  }