public final class RequestLine
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
RequestLine() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
get(Request request,
java.net.Proxy.Type proxyType)
Returns the request status line, like "GET / HTTP/1.1".
|
private static boolean |
includeAuthorityInRequestLine(Request request,
java.net.Proxy.Type proxyType)
Returns true if the request line should contain the full URL with host and port (like "GET
http://android.com/foo HTTP/1.1") or only the path (like "GET /foo HTTP/1.1").
|
static java.lang.String |
requestPath(HttpUrl url)
Returns the path to request, like the '/' in 'GET / HTTP/1.1'.
|
public static java.lang.String get(Request request, java.net.Proxy.Type proxyType)
URLConnection.getHeaderFields()
, so it needs to be set even if the transport is
HTTP/2.private static boolean includeAuthorityInRequestLine(Request request, java.net.Proxy.Type proxyType)
public static java.lang.String requestPath(HttpUrl url)