Class Request

java.lang.Object
com.squareup.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.

Warning: Experimental OkHttp 2.0 API

This class is in beta. APIs are subject to change!
  • Method Details

    • url

      public URL url()
    • urlString

      public String urlString()
    • method

      public String method()
    • header

      public String header​(String name)
    • headers

      public List<String> headers​(String name)
    • headerNames

      public Set<String> headerNames()
    • headerCount

      public int headerCount()
    • headerName

      public String headerName​(int index)
    • headerValue

      public String headerValue​(int index)
    • body

      public Request.Body body()
    • tag

      public Object tag()