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

Method Http

src/main/java/core/packetproxy/http/Http.java:223–234  ·  view source on GitHub ↗
(byte[] data, boolean withoutTouchingContentLength)

Source from the content-addressed store, hash-verified

221 }
222
223 private Http(byte[] data, boolean withoutTouchingContentLength) throws Exception {
224 if (withoutTouchingContentLength) {
225
226 this.dontTouchContentLength();
227 }
228 queryString = new QueryString("");
229 header = new HttpHeader(data);
230 originalHeader = new HttpHeader(data);
231 analyzeStatusLine(header.getStatusline());
232 rawBody = getHttpBody(data);
233 body = getCookedBody(header, rawBody);
234 }
235
236 public HttpHeader getHeader() {
237 return header;

Callers

nothing calls this directly

Calls 5

analyzeStatusLineMethod · 0.95
getHttpBodyMethod · 0.95
getCookedBodyMethod · 0.95
getStatuslineMethod · 0.80

Tested by

no test coverage detected