Uses of Class
com.squareup.okhttp.Request.Body
| Package | Description |
|---|---|
| com.squareup.okhttp |
-
Uses of Request.Body in com.squareup.okhttp
Methods in com.squareup.okhttp that return Request.Body Modifier and Type Method Description Request.BodyRequest. body()static Request.BodyRequest.Body. create(MediaType contentType, byte[] content)Returns a new request body that transmitscontent.static Request.BodyRequest.Body. create(MediaType contentType, File file)Returns a new request body that transmits the content offile.static Request.BodyRequest.Body. create(MediaType contentType, String content)Returns a new request body that transmitscontent.Methods in com.squareup.okhttp with parameters of type Request.Body Modifier and Type Method Description Request.BuilderRequest.Builder. method(String method, Request.Body body)Request.BuilderRequest.Builder. post(Request.Body body)Request.BuilderRequest.Builder. put(Request.Body body)