Package groovyx.net.http

HTTPBuilder provides a simple Groovy API for HTTP and REST client operations.

See: Description

Package groovyx.net.http Description

HTTPBuilder provides a simple Groovy API for HTTP and REST client operations. It supports multiple callbacks based on response status code, and a mechanism to automatically parse and encode many common content-types such as XML, JSON, HTML, and plain text. HTTPBuilder also supports easy configuration for common authentication mechanisms, and common content-encodings as well.

Package Specification

The primary class is HTTPBuilder, which provides the most features and functionality. RESTClient, AsyncHTTPBuilder and HttpURLClient are variants provided for more specialized use cases.

URIBuilder is used by HTTPBuilder classes for URL manipulation, but it may also be useful on its own. The remaining classes provide supporting functions for HTTPBuilder and are probably only useful for customizing or extending HTTPBuilder functionality.

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see: For content-type parser and encoder support, see:
Author:
Tom Nichols
See Also:
HTTPBuilder, RESTClient, URIBuilder, AsyncHTTPBuilder, HttpURLClient

Copyright © 2008–2014. All rights reserved.