@Test public void providesFirstHeaderValueWhenSeveralExist() { assertThat(headers.get("header2").get(), is("val2a")); }
public Optional<String> get(CharSequence name) { return Optional.ofNullable(nettyHeaders.get(name)); }
HttpHeaders implements Iterable<HttpHeader> { public Optional<String> get(CharSequence name) { return Optional.ofNullable(nettyHeaders.get(name)); } }
HttpHeaders implements Iterable<HttpHeader> { public Optional<String> get(CharSequence name) { return Optional.ofNullable(nettyHeaders.get(name)); } private  HttpHeaders(Builder builder); }
HttpHeaders implements Iterable<HttpHeader> { public Optional<String> get(CharSequence name) { return Optional.ofNullable(nettyHeaders.get(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 Optional<String> get(CharSequence name) { return Optional.ofNullable(nettyHeaders.get(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);  }