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

Method update

src/main/java/core/packetproxy/http/HttpHeader.java:119–122  ·  view source on GitHub ↗
(String name, String value)

Source from the content-addressed store, hash-verified

117 }
118
119 public void update(String name, String value) {
120 fields.removeIf(h -> h.getName().equalsIgnoreCase(name));
121 fields.add(new HeaderField(name, value));
122 }
123
124 public void removeAll(String name) {
125 fields.removeIf(h -> h.getName().equalsIgnoreCase(name));

Callers 4

encodeBodyByGzipMethod · 0.45
updateHeaderMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 2

getNameMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected