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

Method getURI

src/main/java/core/packetproxy/http/Http.java:384–398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382 }
383
384 private String getURI() {
385 String authority = "unknown";
386 if (version.equals("HTTP/2")) {
387
388 authority = getFirstHeader("X-PacketProxy-HTTP2-Host");
389 } else if (version.equals("HTTP/3")) {
390
391 authority = getFirstHeader("x-packetproxy-http3-host");
392 }
393 String scheme = "https";
394 String path = getPath();
395 String query = getQueryAsString();
396 String queryStr = (query != null && query.length() > 0) ? "?" + query : "";
397 return scheme + "://" + authority + path + queryStr;
398 }
399
400 public byte[] toByteArray() throws Exception {
401 byte[] result = null;

Callers 4

getURLMethod · 0.95
decodeToHttpMethod · 0.80
generateReqHttpMethod · 0.80

Calls 5

getFirstHeaderMethod · 0.95
getPathMethod · 0.95
getQueryAsStringMethod · 0.95
lengthMethod · 0.80
equalsMethod · 0.45