程序包 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
  • 构造器详细资料

  • 方法详细资料

    • setUrl

      public void setUrl​(String url)
      ------------------- getter and setter -------------------
    • setMethod

      public void setMethod​(RequestMethod method)
    • setHeader

      public void setHeader​(Header header)
    • setParam

      public void setParam​(Request param)
    • setBody

      public void setBody​(Body body)
    • getUrl

      public String getUrl()
    • getHeader

      public Header getHeader()
    • getMethod

      public RequestMethod getMethod()
    • getParam

      public Request getParam()
    • getBody

      public Body getBody()
    • ajax

      public Response ajax() throws Exception
      ------------------- override -------------------
      指定者:
      ajax 在接口中 Ajax
      返回:
      com.xiaoHttp.response.Response
      抛出:
      Exception
    • get

      public static Axios get​(String url) throws Exception
      [使用Axios发送Get请求](Use Axios to send Get request)
      参数:
      url - URL
      返回:
      com.axios.Axios
      抛出:
      Exception
    • get

      public static Axios get​(String url, Header header) throws Exception
      [使用Axios发送Get请求](Use Axios to send Get request)
      参数:
      url - URL
      header - 请求头
      返回:
      com.axios.Axios
      抛出:
      Exception
    • get

      public static Axios get​(String url, Request param) throws Exception
      [使用Axios发送Get请求](Use Axios to send Get request)
      参数:
      url - URL
      param - 请求内容
      返回:
      com.axios.Axios
      抛出:
      Exception
    • get

      public static Axios get​(String url, Request param, Header header) throws Exception
      [使用Axios发送Get请求](Use Axios to send Get request)
      参数:
      url - URL
      param - 请求内容
      header - 请求头
      返回:
      com.axios.Axios
      抛出:
      Exception
    • post

      public static Axios post​(String url) throws Exception
      [使用Axios发送Post请求](Use Axios to send Post request)
      参数:
      url - URL
      返回:
      com.axios.Axios
      抛出:
      Exception
    • post

      public static Axios post​(String url, Body body) throws Exception
      [发送post请求](Send post request)
      参数:
      url - URL
      body - 请求体
      返回:
      com.axios.Axios
      抛出:
      Exception
      从以下版本开始:
      2021-12-11 20:32:39
    • post

      public static Axios post​(String url, Header header) throws Exception
      [发送post请求](Send post request)
      参数:
      url - URL
      header - 请求头
      返回:
      com.axios.Axios
      抛出:
      Exception
      从以下版本开始:
      2021-12-11 20:33:33
    • post

      public static Axios post​(String url, Body body, Header header) throws Exception
      [使用Axios发送Post请求](Use Axios to send Post request)
      参数:
      url - URL
      body - 请求体
      header - 请求头
      返回:
      com.axios.Axios
      抛出:
      Exception
    • put

      public static Axios put​(String url) throws Exception
      [发送PUT请求](send PUT request)
      参数:
      url - URL
      返回:
      com.axios.Axios
      抛出:
      Exception
      从以下版本开始:
      2021-12-11 20:46:17
    • put

      public static Axios put​(String url, Body body) throws Exception
      [发送PUT请求](send PUT request)
      参数:
      url - URL
      body - 请求体
      返回:
      com.axios.Axios
      抛出:
      Exception
      从以下版本开始:
      2021-12-11 20:47:02
    • put

      public static Axios put​(String url, Header header) throws Exception
      [发送PUT请求](send PUT request)
      参数:
      url - URL
      header - 请求头
      返回:
      com.axios.Axios
      抛出:
      Exception
      从以下版本开始:
      2021-12-11 20:47:19
    • put

      public static Axios put​(String url, Body body, Header header) throws Exception
      [发送PUT请求](send PUT request)
      参数:
      url - URL
      body - 请求体
      header - 请求头
      返回:
      com.axios.Axios
      抛出:
      Exception
      从以下版本开始:
      2021-12-11 20:47:34
    • delete

      public static Axios delete​(String url) throws Exception
      [发送DELETE请求](send DELETE request)
      参数:
      url - URL
      返回:
      com.axios.Axios
      抛出:
      Exception
      从以下版本开始:
      2021-12-11 20:48:45
    • delete

      public static Axios delete​(String url, Request request) throws Exception
      [发送DELETE请求](send DELETE request)
      参数:
      url - URL
      request - 请求体
      返回:
      com.axios.Axios
      抛出:
      Exception
      从以下版本开始:
      2021-12-11 20:49:52
    • delete

      public static Axios delete​(String url, Header header) throws Exception
      [发送DELETE请求](send DELETE request)
      参数:
      url - URL
      header - 请求头
      返回:
      com.axios.Axios
      抛出:
      Exception
      从以下版本开始:
      2021-12-11 20:50:14
    • delete

      public static Axios delete​(String url, Request request, Header header) throws Exception
      [发送DELETE请求](send DELETE request)
      参数:
      url - URL
      request - 请求体
      header - 请求头
      返回:
      com.axios.Axios
      抛出:
      Exception
      从以下版本开始:
      2021-12-11 20:50:28
    • body

      public Response body() throws Exception
      [获取Ajax的响应信息](Get Ajax response information)
      返回:
      java.lang.String
      抛出:
      Exception