Code Monkey home page Code Monkey logo

quickhttp2's Introduction

QuickHttp

QuickHttp是一个http客户端框架

  • 支持Cookie的自动管理
  • 支持设置全局http代理
  • 支持异步请求
  • 声明式API设计和链式操作设计

快速入门

1 导入QuickHttp

<dependency>
  <groupId>cn.schoolwow</groupId>
  <artifactId>QuickHttp</artifactId>
  <version>{最新版本}</version>
</dependency>

最新版本查询

2 使用QuickHttp

QuickHttpClient client = QuickHttp.newQuickHttpClient();
Response response = client.connect("https://www.baidu.com")
                //添加请求头部
                .header("header","value")
                //url路径表单参数
                .parameter("a","1")
                //body表单参数
                .data("b","2")
                //上传文件
                .data("file",Paths.get("filePath"))
                .execute();
//返回状态码
System.out.println(response.statusCode());
//返回头部
System.out.println(response.headers());
//返回内容
System.out.println(response.body());

详细文档

点此访问

反馈

  • 提交Issue
  • 邮箱: [email protected]
  • QQ群: 958754367(quick系列交流,群初建,人较少)

开源协议

本软件使用 GPL 开源协议! 非商业使用无限制,若需商业使用,请通过邮箱,QQ群,微信号联系本人获取授权.

quickhttp2's People

Contributors

sunyue1380 avatar

Stargazers

shenpeng.cui avatar  avatar SunYu avatar Edward Xie avatar

Watchers

James Cloos avatar  avatar

quickhttp2's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.