-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
ballerina-platform/asyncapi-tools
#141Labels
Type/Improvementmodule/asyncapi-toolsmodule/asyncapi-triggersIssues related asyncapi-triggersIssues related asyncapi-triggers
Milestone
Description
Current Limitation
The listeners created from Async API has the following init function:
function init(ListenerConfig listenerConfig , int|http:Listener listenOn) {}The ListenerConfig record only has the trigger specific configurations, and if you want to configure the HTTP listener config then you need to pass the HTTP listener as the listenOn parameter(this requires a HTTP listener defintion). There is no way to simply give the port for listenOn and add the HTTP configurations separately.
Suggested Improvement
In case of GraphQL listener, we can pass the HTTP listener configurations as part of GraphQL listener configurations:
isolated function init(int|http:Listener listenTo, *ListenerConfiguration configuration) { }# Provides a set of configurations for configure the underlying HTTP listener of the GraphQL listener.
public type ListenerConfiguration record {|
*http:ListenerConfiguration;
|};This approach is more preferable than the other
Version
Ballerina SwanLake Update 11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type/Improvementmodule/asyncapi-toolsmodule/asyncapi-triggersIssues related asyncapi-triggersIssues related asyncapi-triggers