Home | History | Annotate | Download | only in http

Lines Matching refs:Request

4 import com.squareup.okhttp.Request;
13 * Returns the request status line, like "GET / HTTP/1.1". This is exposed
17 static String get(Request request, Proxy.Type proxyType) {
19 result.append(request.method());
22 if (includeAuthorityInRequestLine(request, proxyType)) {
23 result.append(request.httpUrl());
25 result.append(requestPath(request.httpUrl()));
33 * Returns true if the request line should contain the full URL with host
37 private static boolean includeAuthorityInRequestLine(Request request, Proxy.Type proxyType) {
38 return !request.isHttps() && proxyType == Proxy.Type.HTTP;
42 * Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty,
43 * even if the request URL is. Includes the query component if it exists.