Last active
January 17, 2020 09:54
-
-
Save ldclakmal/085d29980ff8920a2b7a8d5711e42002 to your computer and use it in GitHub Desktop.
Ballerina HTTP/2 service
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
import ballerina/http; | |
listener http:Listener helloWorldEP = new(9095, { httpVersion: "2.0" }); | |
service hello on helloWorldEP { | |
resource function sayHello(http:Caller caller, http:Request req) { | |
checkpanic caller->respond("Ballerina HTTP/2 Response !"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment