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

Method getValue

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

Source from the content-addressed store, hash-verified

96 }
97
98 public Optional<String> getValue(String name) {
99 Optional<HeaderField> value = getHeader(name);
100 if (value.isPresent()) {
101
102 return Optional.of(value.get().getValue());
103 }
104 return Optional.ofNullable(null);
105 }
106
107 public List<HeaderField> getAll(String name) {
108 return fields.stream().filter(h -> h.getName().equalsIgnoreCase(name)).collect(Collectors.toList());

Callers 15

DataFrameMethod · 0.95
getHostMethod · 0.45
getCookedBodyMethod · 0.45
getURLMethod · 0.45
isGzipEncodedMethod · 0.45
getFirstHeaderMethod · 0.45
getAllValueMethod · 0.45
decodeFromFramesMethod · 0.45
encodeToFramesMethod · 0.45
decodeFromFramesMethod · 0.45
encodeToFramesMethod · 0.45

Calls 3

getHeaderMethod · 0.95
ofMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected