Package 

Class RequestLine

    • Method Summary

      Modifier and Type Method Description
      static String get(MobonRequest mobonRequest, Proxy.Type proxyType) Returns the mobonRequest status line, like "GET / HTTP/1.1".
      static String requestPath(HttpUrl url) Returns the path to request, like the '/' in 'GET / HTTP/1.1'.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.