public class HttpUtil extends Object
| Constructor and Description |
|---|
HttpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
get(HttpProxy httpProxy,
String url,
Map<String,List<String>> requestHeaders,
ByteArrayQueue responseBody,
Map<String,List<String>> responseHeaders,
int timeout) |
static int |
get(String url,
Map<String,List<String>> requestHeaders,
ByteArrayQueue responseBody,
Map<String,List<String>> responseHeaders,
int timeout) |
static int |
head(HttpProxy httpProxy,
String url,
Map<String,List<String>> requestHeaders,
Map<String,List<String>> responseHeaders,
int timeout) |
static int |
head(String url,
Map<String,List<String>> requestHeaders,
Map<String,List<String>> responseHeaders,
int timeout) |
static int |
post(HttpProxy httpProxy,
String url,
ByteArrayQueue requestBody,
Map<String,List<String>> requestHeaders,
ByteArrayQueue responseBody,
Map<String,List<String>> responseHeaders,
int timeout) |
static int |
post(String url,
ByteArrayQueue requestBody,
Map<String,List<String>> requestHeaders,
ByteArrayQueue responseBody,
Map<String,List<String>> responseHeaders,
int timeout) |
static int |
recv(InputStream in,
ByteArrayQueue responseBody,
Map<String,List<String>> responseHeaders,
boolean head,
boolean[] connectionClose) |
public static int recv(InputStream in, ByteArrayQueue responseBody, Map<String,List<String>> responseHeaders, boolean head, boolean[] connectionClose) throws IOException
IOExceptionpublic static int head(String url, Map<String,List<String>> requestHeaders, Map<String,List<String>> responseHeaders, int timeout) throws IOException
IOExceptionpublic static int get(String url, Map<String,List<String>> requestHeaders, ByteArrayQueue responseBody, Map<String,List<String>> responseHeaders, int timeout) throws IOException
IOExceptionpublic static int post(String url, ByteArrayQueue requestBody, Map<String,List<String>> requestHeaders, ByteArrayQueue responseBody, Map<String,List<String>> responseHeaders, int timeout) throws IOException
IOExceptionpublic static int head(HttpProxy httpProxy, String url, Map<String,List<String>> requestHeaders, Map<String,List<String>> responseHeaders, int timeout) throws IOException
IOExceptionpublic static int get(HttpProxy httpProxy, String url, Map<String,List<String>> requestHeaders, ByteArrayQueue responseBody, Map<String,List<String>> responseHeaders, int timeout) throws IOException
IOExceptionpublic static int post(HttpProxy httpProxy, String url, ByteArrayQueue requestBody, Map<String,List<String>> requestHeaders, ByteArrayQueue responseBody, Map<String,List<String>> responseHeaders, int timeout) throws IOException
IOExceptionCopyright © 2018. All rights reserved.