Group: Ceylon HTTP
1. Ceylon Http Server Platform Module2 usages
ceylon.http » serverApache
This module defines APIs for defining HTTP endpoints and executing HTTP servers.
A [[ceylon.http.server::Server]] represents a HTTP
server. A new `Server` may be defined using
[[ceylon.http.server::newServer]].
void runServer() {
//create a HTTP server
value server = newServer {
//an endpoint, on the path /hello
Endpoint {
path = startsWith("/hello");
//handle requests to this path
service(Request request, ...
Last Release on Feb 13, 2021
2. Ceylon Http Platform Module2 usages
ceylon.http » commonApache
This module defines APIs common to HTTP clients and servers.
Last Release on Feb 13, 2021
3. Ceylon Http Client Platform Module
ceylon.http » clientApache
This module defines APIs for connecting to HTTP servers.
Given a [[ceylon.uri::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);
}
Last Release on Feb 13, 2021