程序包 com.axios
类 Axios
java.lang.Object
com.axios.Axios
- 所有已实现的接口:
Ajax
public class Axios extends Object implements Ajax
[发送具体的HTTP请求](Send a specific HTTP request)
- 从以下版本开始:
- 2021-12-11 20:55:20
- 版本:
- V1.0
- 作者:
- XiaoXunYao
-
构造器概要
构造器 构造器 说明 Axios()
Axios(String url)
Axios(String url, RequestMethod method)
Axios(String url, RequestMethod method, Header header)
Axios(String url, RequestMethod method, Body body)
Axios(String url, RequestMethod method, Body body, Header header)
Axios(String url, RequestMethod method, Request param)
Axios(String url, RequestMethod method, Request param, Header header)
Axios(String url, RequestMethod method, Request param, Body body, Header header)
-
方法概要
修饰符和类型 方法 说明 Response
ajax()
------------------- override -------------------Response
body()
[获取Ajax的响应信息](Get Ajax response information)static Axios
delete(String url)
[发送DELETE请求](send DELETE request)static Axios
delete(String url, Header header)
[发送DELETE请求](send DELETE request)static Axios
delete(String url, Request request)
[发送DELETE请求](send DELETE request)static Axios
delete(String url, Request request, Header header)
[发送DELETE请求](send DELETE request)static Axios
get(String url)
[使用Axios发送Get请求](Use Axios to send Get request)static Axios
get(String url, Header header)
[使用Axios发送Get请求](Use Axios to send Get request)static Axios
get(String url, Request param)
[使用Axios发送Get请求](Use Axios to send Get request)static Axios
get(String url, Request param, Header header)
[使用Axios发送Get请求](Use Axios to send Get request)Body
getBody()
Header
getHeader()
RequestMethod
getMethod()
Request
getParam()
String
getUrl()
static Axios
post(String url)
[使用Axios发送Post请求](Use Axios to send Post request)static Axios
post(String url, Header header)
[发送post请求](Send post request)static Axios
post(String url, Body body)
[发送post请求](Send post request)static Axios
post(String url, Body body, Header header)
[使用Axios发送Post请求](Use Axios to send Post request)static Axios
put(String url)
[发送PUT请求](send PUT request)static Axios
put(String url, Header header)
[发送PUT请求](send PUT request)static Axios
put(String url, Body body)
[发送PUT请求](send PUT request)static Axios
put(String url, Body body, Header header)
[发送PUT请求](send PUT request)void
setBody(Body body)
void
setHeader(Header header)
void
setMethod(RequestMethod method)
void
setParam(Request param)
void
setUrl(String url)
------------------- getter and setter -------------------
-
构造器详细资料
-
方法详细资料
-
setUrl
------------------- getter and setter ------------------- -
setMethod
-
setHeader
-
setParam
-
setBody
-
getUrl
-
getHeader
-
getMethod
-
getParam
-
getBody
-
ajax
------------------- override ------------------- -
get
[使用Axios发送Get请求](Use Axios to send Get request)- 参数:
url
- URL- 返回:
- com.axios.Axios
- 抛出:
Exception
-
get
[使用Axios发送Get请求](Use Axios to send Get request)- 参数:
url
- URLheader
- 请求头- 返回:
- com.axios.Axios
- 抛出:
Exception
-
get
[使用Axios发送Get请求](Use Axios to send Get request)- 参数:
url
- URLparam
- 请求内容- 返回:
- com.axios.Axios
- 抛出:
Exception
-
get
[使用Axios发送Get请求](Use Axios to send Get request)- 参数:
url
- URLparam
- 请求内容header
- 请求头- 返回:
- com.axios.Axios
- 抛出:
Exception
-
post
[使用Axios发送Post请求](Use Axios to send Post request)- 参数:
url
- URL- 返回:
- com.axios.Axios
- 抛出:
Exception
-
post
[发送post请求](Send post request)- 参数:
url
- URLbody
- 请求体- 返回:
- com.axios.Axios
- 抛出:
Exception
- 从以下版本开始:
- 2021-12-11 20:32:39
-
post
[发送post请求](Send post request)- 参数:
url
- URLheader
- 请求头- 返回:
- com.axios.Axios
- 抛出:
Exception
- 从以下版本开始:
- 2021-12-11 20:33:33
-
post
[使用Axios发送Post请求](Use Axios to send Post request)- 参数:
url
- URLbody
- 请求体header
- 请求头- 返回:
- com.axios.Axios
- 抛出:
Exception
-
put
[发送PUT请求](send PUT request)- 参数:
url
- URL- 返回:
- com.axios.Axios
- 抛出:
Exception
- 从以下版本开始:
- 2021-12-11 20:46:17
-
put
[发送PUT请求](send PUT request)- 参数:
url
- URLbody
- 请求体- 返回:
- com.axios.Axios
- 抛出:
Exception
- 从以下版本开始:
- 2021-12-11 20:47:02
-
put
[发送PUT请求](send PUT request)- 参数:
url
- URLheader
- 请求头- 返回:
- com.axios.Axios
- 抛出:
Exception
- 从以下版本开始:
- 2021-12-11 20:47:19
-
put
[发送PUT请求](send PUT request)- 参数:
url
- URLbody
- 请求体header
- 请求头- 返回:
- com.axios.Axios
- 抛出:
Exception
- 从以下版本开始:
- 2021-12-11 20:47:34
-
delete
[发送DELETE请求](send DELETE request)- 参数:
url
- URL- 返回:
- com.axios.Axios
- 抛出:
Exception
- 从以下版本开始:
- 2021-12-11 20:48:45
-
delete
[发送DELETE请求](send DELETE request)- 参数:
url
- URLrequest
- 请求体- 返回:
- com.axios.Axios
- 抛出:
Exception
- 从以下版本开始:
- 2021-12-11 20:49:52
-
delete
[发送DELETE请求](send DELETE request)- 参数:
url
- URLheader
- 请求头- 返回:
- com.axios.Axios
- 抛出:
Exception
- 从以下版本开始:
- 2021-12-11 20:50:14
-
delete
[发送DELETE请求](send DELETE request)- 参数:
url
- URLrequest
- 请求体header
- 请求头- 返回:
- com.axios.Axios
- 抛出:
Exception
- 从以下版本开始:
- 2021-12-11 20:50:28
-
body
[获取Ajax的响应信息](Get Ajax response information)- 返回:
- java.lang.String
- 抛出:
Exception
-