public final class HttpRequestClient extends Object implements HttpClient
emptyRequestBody| 构造器和说明 |
|---|
HttpRequestClient(ClientConfiguration config) |
| 限定符和类型 | 方法和说明 |
|---|---|
com.squareup.okhttp.Response |
delete(String url) |
com.squareup.okhttp.Response |
delete(String url,
HttpHeaders headers) |
com.squareup.okhttp.Response |
get(String url) |
com.squareup.okhttp.Response |
get(String url,
HttpHeaders headers) |
com.squareup.okhttp.Response |
post(String url,
byte[] body,
HttpHeaders headers) |
com.squareup.okhttp.Response |
post(String url,
byte[] body,
HttpHeaders headers,
String contentType) |
com.squareup.okhttp.Response |
post(String url,
byte[] body,
int offset,
int size,
HttpHeaders headers,
String contentType) |
com.squareup.okhttp.Response |
post(String url,
HttpFormEncoding params,
HttpHeaders headers) |
com.squareup.okhttp.Response |
post(String url,
InputStream inputStream,
Long contentLength,
HttpHeaders headers) |
com.squareup.okhttp.Response |
post(String url,
String body,
HttpHeaders headers) |
com.squareup.okhttp.Response |
put(String url,
HttpHeaders headers) |
com.squareup.okhttp.Response |
put(String url,
InputStream inputStream,
Long contentLength,
HttpHeaders headers) |
com.squareup.okhttp.Response |
put(String url,
Object body,
HttpHeaders headers) |
com.squareup.okhttp.Response |
put(String url,
String body,
HttpHeaders headers) |
com.squareup.okhttp.Response |
send(com.squareup.okhttp.Request.Builder requestBuilder,
com.squareup.okhttp.Headers headers) |
public HttpRequestClient(ClientConfiguration config)
public com.squareup.okhttp.Response get(String url) throws BimfaceException
get 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response get(String url, HttpHeaders headers) throws BimfaceException
get 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response post(String url, byte[] body, HttpHeaders headers) throws BimfaceException
post 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response post(String url, String body, HttpHeaders headers) throws BimfaceException
post 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response post(String url, HttpFormEncoding params, HttpHeaders headers) throws BimfaceException
post 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response post(String url, byte[] body, HttpHeaders headers, String contentType) throws BimfaceException
post 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response post(String url, byte[] body, int offset, int size, HttpHeaders headers, String contentType) throws BimfaceException
post 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response post(String url, InputStream inputStream, Long contentLength, HttpHeaders headers) throws BimfaceException
post 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response put(String url, HttpHeaders headers) throws BimfaceException
put 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response put(String url, Object body, HttpHeaders headers) throws BimfaceException
put 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response put(String url, String body, HttpHeaders headers) throws BimfaceException
put 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response put(String url, InputStream inputStream, Long contentLength, HttpHeaders headers) throws BimfaceException
put 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response delete(String url) throws BimfaceException
delete 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response delete(String url, HttpHeaders headers) throws BimfaceException
delete 在接口中 HttpClientBimfaceExceptionpublic com.squareup.okhttp.Response send(com.squareup.okhttp.Request.Builder requestBuilder,
com.squareup.okhttp.Headers headers)
throws BimfaceException
BimfaceExceptionCopyright © 2016. All rights reserved.