Class HttpClientUtils
- java.lang.Object
-
- io.github.handsomecoder.utils.http.HttpClientUtils
-
public class HttpClientUtils extends Object
The type Http client utils.
-
-
Constructor Summary
Constructors Constructor Description HttpClientUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponseEntitydelete(String url)Delete http response entity.HttpResponseEntitydelete(String url, Map<String,Object> queryParams)Delete http response entity.HttpResponseEntitydelete(String url, Map<String,String> headers, Map<String,Object> queryParams)Delete http response entity.HttpResponseEntityget(String url)Get http response entity.HttpResponseEntityget(String url, Map<String,Object> queryParams)Get http response entity.HttpResponseEntityget(String url, Map<String,String> headers, Map<String,Object> queryParams)Get http response entity.HttpResponseEntitypost(String url)Post http response entity.HttpResponseEntitypost(String url, Map<String,Object> queryParams)Post http response entity.HttpResponseEntitypost(String url, Map<String,String> headers, String body)Post http response entity.HttpResponseEntitypost(String url, Map<String,String> headers, Map<String,Object> queryParams, String body)Post http response entity.HttpResponseEntityput(String url)Put http response entity.HttpResponseEntityput(String url, Map<String,Object> queryParams)Put http response entity.HttpResponseEntityput(String url, Map<String,String> headers, String body)Put http response entity.HttpResponseEntityput(String url, Map<String,String> headers, Map<String,Object> queryParams, String body)Put http response entity.
-
-
-
Method Detail
-
get
public HttpResponseEntity get(String url)
Get http response entity.- Parameters:
url- the url- Returns:
- the http response entity
-
get
public HttpResponseEntity get(String url, Map<String,Object> queryParams)
Get http response entity.- Parameters:
url- the urlqueryParams- the query params- Returns:
- the http response entity
-
get
public HttpResponseEntity get(String url, Map<String,String> headers, Map<String,Object> queryParams)
Get http response entity.- Parameters:
url- the urlheaders- the headersqueryParams- the query params- Returns:
- the http response entity
-
post
public HttpResponseEntity post(String url)
Post http response entity.- Parameters:
url- the url- Returns:
- the http response entity
-
post
public HttpResponseEntity post(String url, Map<String,Object> queryParams)
Post http response entity.- Parameters:
url- the urlqueryParams- the query params- Returns:
- the http response entity
-
post
public HttpResponseEntity post(String url, Map<String,String> headers, String body)
Post http response entity.- Parameters:
url- the urlheaders- the headersbody- the body- Returns:
- the http response entity
-
post
public HttpResponseEntity post(String url, Map<String,String> headers, Map<String,Object> queryParams, String body)
Post http response entity.- Parameters:
url- the urlheaders- the headersqueryParams- the query paramsbody- the body- Returns:
- the http response entity
-
put
public HttpResponseEntity put(String url)
Put http response entity.- Parameters:
url- the url- Returns:
- the http response entity
-
put
public HttpResponseEntity put(String url, Map<String,Object> queryParams)
Put http response entity.- Parameters:
url- the urlqueryParams- the query params- Returns:
- the http response entity
-
put
public HttpResponseEntity put(String url, Map<String,String> headers, String body)
Put http response entity.- Parameters:
url- the urlheaders- the headersbody- the body- Returns:
- the http response entity
-
put
public HttpResponseEntity put(String url, Map<String,String> headers, Map<String,Object> queryParams, String body)
Put http response entity.- Parameters:
url- the urlheaders- the headersqueryParams- the query paramsbody- the body- Returns:
- the http response entity
-
delete
public HttpResponseEntity delete(String url)
Delete http response entity.- Parameters:
url- the url- Returns:
- the http response entity
-
delete
public HttpResponseEntity delete(String url, Map<String,Object> queryParams)
Delete http response entity.- Parameters:
url- the urlqueryParams- the query params- Returns:
- the http response entity
-
-