MCPcopy Create free account
hub / github.com/adblockplus/adblockplusandroid / toString

Method toString

src/sunlabs/brazil/server/Request.java:720–732  ·  view source on GitHub ↗

Returns a string representation of this Request . The string representation is the first line (the method line) of the HTTP request that this Request is handling. Useful for debugging. @return The string representation of this Request .

()

Source from the content-addressed store, hash-verified

718 * @return The string representation of this <code>Request</code>.
719 */
720 public String
721 toString()
722 {
723 StringBuffer sb = new StringBuffer();
724
725 sb.append(method).append(' ').append(url);
726 if ((query != null) && (query.length() > 0)) {
727 sb.append('?').append(query);
728 }
729 sb.append(' ').append(protocol);
730 sb.append(" (").append(sock.toString()).append(")");
731 return sb.toString();
732 }
733
734 /**
735 * Reads an HTTP request from the socket.

Callers 2

sendHeadersMethod · 0.45
runMethod · 0.45

Calls 2

appendMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected