You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer who works a lot on different plugins that expose web services I want to have a utility class starting/shutting down HTTP/S servers in a promisifed way so that I can start/shutdown a server as needed with one-liners instead of 15 lines of callback hell.
There is already a ./common/servers.ts file in the api server package but that should be moved to the common package instead and be extended with some additional functionality.
Acceptance Criteria
Move Servres class to common package
Make sure to only export the Servers class for the node builds never the web ones.
Useful when working with HTTP servers especially for
test case authoring where there's a lot of server
creation for the purpose of allocating random ports
prior to launching an API server instance.
Fixeshyperledger-cacti#260Fixeshyperledger-cacti#267
Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Useful when working with HTTP servers especially for
test case authoring where there's a lot of server
creation for the purpose of allocating random ports
prior to launching an API server instance.
Fixeshyperledger-cacti#260Fixeshyperledger-cacti#267
Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Useful when working with HTTP servers especially for
test case authoring where there's a lot of server
creation for the purpose of allocating random ports
prior to launching an API server instance.
Fixes#260Fixes#267
Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Description
As a developer who works a lot on different plugins that expose web services I want to have a utility class starting/shutting down HTTP/S servers in a promisifed way so that I can start/shutdown a server as needed with one-liners instead of 15 lines of callback hell.
There is already a
./common/servers.ts
file in the api server package but that should be moved to the common package instead and be extended with some additional functionality.Acceptance Criteria
Servres
class to common packagecc: @jonathan-m-hamilton @takeutak @sfuji822
The text was updated successfully, but these errors were encountered: