类 RequestLine

java.lang.Object
com.lark.oapi.okhttp.internal.http.RequestLine

public final class RequestLine extends Object
  • 方法详细资料

    • get

      public static String get(Request request, Proxy.Type proxyType)
      Returns the request status line, like "GET / HTTP/1.1". This is exposed to the application by URLConnection.getHeaderFields(), so it needs to be set even if the transport is HTTP/2.
    • requestPath

      public static String requestPath(HttpUrl url)
      Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the request URL is. Includes the query component if it exists.