@Test public void testGetHeaders() throws Exception { HttpRequest nettyRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_0, HttpMethod.GET, "www.google.com"); nettyRequest.headers().add("key1", "value1"); nettyRequest.headers().add("key1", "value2"); nettyRequest.headers().add("key2", "value1"); RecordedHttpRequestBuilder recordedHttpRequestBuilder = new RecordedHttpRequestBuilder(nettyRequest); Multimap<String, String> headers = recordedHttpRequestBuilder.getHeaders(); Assert.assertEquals(headers.size(), 3); Assert.assertTrue(headers.get("key1").contains("value1")); Assert.assertTrue(headers.get("key1").contains("value2")); Assert.assertTrue(headers.get("key2").contains("value1")); }
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);  }