public final class RequestLine extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
get(Request request,
Proxy.Type proxyType)
Returns the request status line, like "GET / HTTP/1.1".
|
static String |
requestPath(HttpUrl url)
Returns the path to request, like the '/' in 'GET / HTTP/1.1'.
|
public static String get(Request request, Proxy.Type proxyType)
URLConnection.getHeaderFields(), so it needs to be set even if the transport is
HTTP/2.Copyright © 2017. All Rights Reserved.