Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
src
README.md
pom.xml

README.md

模拟请求模块:(http,ftp)

http

     String html= new SimpleRequestBuilder()
      .http("http://[host]:[port]/")
      .header("key","value")
      .resultAsJsonString() //  ->  header("Accept", "application/json");
      .get()
      .asString();
      
      //下载文件
      new SimpleRequestBuilder()
       .http("http://[host]:[port]/")
       .download()
       .write(outputstream);

ftp

    new SimpleRequestBuilder()
        .ftp("127.0.0.1",21,"username","password")
        .encode("gbk")
        .ls()
        .forEach(System.out::println);