Source Code

This module defines APIs for connecting to HTTP servers.

Given a Uri to an HTTP service, you can get its text representation with:

void getit(Uri uri) {
    Request request = get(uri);
    Response response = request.execute();
    print(response.contents);
}
Platform: Java
By: Stéphane Épardaud, Matej Lazar
License: Apache Software License
Packages
ceylon.http.client

HTTP client APIs.

Dependencies
ceylon.collection1.3.3
ceylon.http.common1.3.3
ceylon.io1.3.3
ceylon.uri1.3.3

HTTP client APIs.

By: Stéphane Épardaud
Functions
getSource Codeshared Request get(Uri uri)

Returns an HTTP GET request for the given Uri

postSource Codeshared Request post(Uri uri, {Parameter*} parameters = ...)

Returns an HTTP POST request for the given Uri

Parameters:
  • parameters = empty
Classes
ParserSource Codeshared Parser

Parses an HTTP message from the given FileDescriptor.

RequestSource Codeshared Request

Represents an HTTP Request

ResponseSource Codeshared Response

Represents an HTTP Response