Group: Ceylon HTTP

Sort: popular | newest
This module defines APIs common to HTTP clients and servers.
Last Release on Feb 13, 2021
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
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