首页IT科技HTTPBuilder Overview

HTTPBuilder Overview

时间2025-06-20 17:31:03分类IT科技浏览3369
导读:Features Builder and parser support for XML, JSON, and HTML Easy URI manipul...

Features

Builder and parser support for XML, JSON, and HTML Easy URI manipulation Streamlined client for REST interfaces Built-in support for GZIP and Deflate content-encoding Built-in support for most common authentication schemes Status code based response handling Convenience methods for GET and POST Compatible with Google App Engine AsyncHTTPBuilder for asynchronous requests Easily extensible API

Components

HTTPBuilder is the main API class which is used to make requests and parse responses. AsyncHTTPBuilder is a subclass of the base HTTPBuilder which transparently delegates all requests to a thread pool for execution. RESTClient extends HTTPBuilder to eliminate the closure definition, to make REST operations particularly easy. Finally, HttpURLClient provides most of HTTPBuilders intelligent handling in a package that can be used from Google App Engine.

URIBuilder provides a fluent interface for manipulating complex URLs. It is also used internally by HTTPBuilder to handle path and query string modification.

See the JavaDoc for full documentation.

Requirements

At least Java 1.5. This is because HttpClient 4 requires Java 5. Groovy 1.5 or later, although it should work with earlier versions JAR dependencies can be found in the packaged distributions linked from the downlo
声明:本站所有文章           ,如无特殊说明或标注                  ,均为本站原创发布            。任何个人或组织      ,在未征得本站同意时           ,禁止复制            、盗用                 、采集      、发布本站内容到任何网站      、书籍等各类媒体平台                 。如若本站内容侵犯了原著者的合法权益                 ,可联系我们进行处理      。

创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
服务器管理员指令怎么用(xauth命令 – 管理X服务器的访问授权)