Skip to content

Instantly share code, notes, and snippets.

@nuwanbando
Created February 26, 2020 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuwanbando/f6a7d95831abf34c86aad63bb2b67be2 to your computer and use it in GitHub Desktop.
Save nuwanbando/f6a7d95831abf34c86aad63bb2b67be2 to your computer and use it in GitHub Desktop.
service hello on new http:Listener(9090) {
resource function sayHello(http:Caller caller, http:Request req) {
var result = caller->respond("Hello, World!");
if (result is error) {
log:printError("Error sending response", result);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment