public final class RequestLine extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2025. All rights reserved.