Skip to content

Instantly share code, notes, and snippets.

@ldclakmal
Last active January 17, 2020 09:54
Show Gist options
  • Save ldclakmal/085d29980ff8920a2b7a8d5711e42002 to your computer and use it in GitHub Desktop.
Save ldclakmal/085d29980ff8920a2b7a8d5711e42002 to your computer and use it in GitHub Desktop.
Ballerina HTTP/2 service
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