MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / getHeader

Method getHeader

src/main/java/core/packetproxy/http/HttpHeader.java:94–96  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

92 }
93
94 public Optional<HeaderField> getHeader(String name) {
95 return fields.stream().filter(h -> h.getName().equalsIgnoreCase(name)).findFirst();
96 }
97
98 public Optional<String> getValue(String name) {
99 Optional<HeaderField> value = getHeader(name);

Callers 1

getValueMethod · 0.95

Calls 3

getNameMethod · 0.65
filterMethod · 0.45
streamMethod · 0.45

Tested by

no test coverage detected