-
public final class RequestLine
-
-
Method Summary
Modifier and Type Method Description static Stringget(MobonRequest mobonRequest, Proxy.Type proxyType)Returns the mobonRequest status line, like "GET / HTTP/1.1". static StringrequestPath(HttpUrl url)Returns the path to request, like the '/' in 'GET / HTTP/1.1'. -
-
Method Detail
-
get
static String get(MobonRequest mobonRequest, Proxy.Type proxyType)
Returns the mobonRequest status line, like "GET / HTTP/1.1". This is exposed to the application by getHeaderFields, so it needs to be set even if the transport isHTTP/2.
-
requestPath
static String requestPath(HttpUrl url)
Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the requestURL is. Includes the query component if it exists.
-
-
-
-