@Test public void checksWhetherHeadersExist() { assertThat(headers.contains("header1"), is(true)); assertThat(headers.contains("header2"), is(true)); assertThat(headers.contains("nonExistent"), is(false)); }
public boolean contains(CharSequence name) { return nettyHeaders.contains(name); }
HttpHeaders implements Iterable<HttpHeader> { public boolean contains(CharSequence name) { return nettyHeaders.contains(name); } }
HttpHeaders implements Iterable<HttpHeader> { public boolean contains(CharSequence name) { return nettyHeaders.contains(name); } private  HttpHeaders(Builder builder); }
HttpHeaders implements Iterable<HttpHeader> { public boolean contains(CharSequence name) { return nettyHeaders.contains(name); } private  HttpHeaders(Builder builder); Set<String> names(); Optional<String> get(CharSequence name); List<String> getAll(CharSequence name); boolean contains(CharSequence name); @Override Iterator<HttpHeader> iterator(); void forEach(BiConsumer<String, String> consumer); Builder newBuilder(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
HttpHeaders implements Iterable<HttpHeader> { public boolean contains(CharSequence name) { return nettyHeaders.contains(name); } private  HttpHeaders(Builder builder); Set<String> names(); Optional<String> get(CharSequence name); List<String> getAll(CharSequence name); boolean contains(CharSequence name); @Override Iterator<HttpHeader> iterator(); void forEach(BiConsumer<String, String> consumer); Builder newBuilder(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }