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

Method analyzeStatusLine

src/main/java/core/packetproxy/http/Http.java:552–565  ·  view source on GitHub ↗
(String status_line)

Source from the content-addressed store, hash-verified

550 static final Pattern STATUS_LINE_PATTERN3 = Pattern.compile("^([^ ]+)");
551
552 private void analyzeStatusLine(String status_line) throws Exception {
553 Matcher matcher = STATUS_LINE_PATTERN3.matcher(status_line);
554 if (matcher.find()) {
555
556 if (matcher.group(1).trim().startsWith("HTTP")) {
557
558 analyzeResponseStatusLine(status_line);
559 } else {
560
561 flag_request = true;
562 analyzeRequestStatusLine(status_line);
563 }
564 }
565 }
566
567 private static byte[] getHttpBody(byte[] input_data) throws Exception {
568 byte[][] search_words = {new String("\r\n\r\n").getBytes(), new String("\n\n").getBytes(),

Callers 1

HttpMethod · 0.95

Calls 3

findMethod · 0.45

Tested by

no test coverage detected