类 Request

java.lang.Object
com.lark.oapi.okhttp.Request

public final class Request extends Object
An HTTP request. Instances of this class are immutable if their body is null or itself immutable.
  • 方法详细资料

    • url

      public HttpUrl url()
    • method

      public String method()
    • headers

      public Headers headers()
    • header

      @Nullable public String header(String name)
    • headers

      public List<String> headers(String name)
    • body

      @Nullable public RequestBody body()
    • tag

      @Nullable public Object tag()
      Returns the tag attached with Object.class as a key, or null if no tag is attached with that key.

      Prior to OkHttp 3.11, this method never returned null if no tag was attached. Instead it returned either this request, or the request upon which this request was derived with newBuilder().

    • tag

      @Nullable public <T> T tag(Class<? extends T> type)
      Returns the tag attached with type as a key, or null if no tag is attached with that key.
    • newBuilder

      public Request.Builder newBuilder()
    • cacheControl

      public CacheControl cacheControl()
      Returns the cache control directives for this response. This is never null, even if this response contains no Cache-Control header.
    • isHttps

      public boolean isHttps()
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object