Created
February 26, 2020 20:17
-
-
Save nuwanbando/f6a7d95831abf34c86aad63bb2b67be2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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