Http Components 使用相关资源

来源:互联网 发布:r语言 java 编辑:程序博客网 时间:2024/05/29 10:55

这个类库理解清楚,对于构建B/S模型也很有好处。

HttpComponents Core

HttpCore is a set of low level HTTP transport components that can be used to build custom client and server side HTTP services with a minimal footprint. HttpCore supports two I/O models: blocking I/O model based on the classic Java I/O and non-blocking, event driven I/O model based on Java NIO.

The blocking I/O model may be more appropriate for data intensive, low latency scenarios, whereas the non-blocking model may be more appropriate for high latency scenarios where raw data throughput is less important than the ability to handle thousands of simultaneous HTTP connections in a resource efficient manner.

  • HttpCore Tutorial HTML / PDF
  • HttpCore Examples

HttpComponents Client

HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on HttpCore. It also provides reusable components for client-side authentication, HTTP state management, and HTTP connection management. HttpComponents Client is a successor of and replacement forCommons HttpClient 3.x. Users of Commons HttpClient are strongly encouraged to upgrade.

  • HttpClient Tutorial HTML / PDF
  • HttpClient Samples
  • HttpClient port for Android




Tiny, easily embeddable HTTP server in Java.         

https://github.com/NanoHttpd/nanohttpd







0 0