Andrew de Andrade created THRIFT-2978:
-----------------------------------------
Summary: nodejs: extract middleware module from http server
Key: THRIFT-2978
URL: https://issues.apache.org/jira/browse/THRIFT-2978
Project: Thrift
Issue Type: Improvement
Components: Node.js - Library
Reporter: Andrew de Andrade
Priority: Minor
Currently the http-server in lib/nodejs is an all-in-one solution, including
features likes:
- CORS verification
- static asset serving
The meat and potatoes of http-server relevant to thrift is the listener at a
certain path that knows how to handle thrift XHR POST requests or how to
upgrade a thrift websocket connection. This part should be extracted out as a
middleware for use with any webserver solution such as the core http and https
modules or frameworks like Express and Hapi.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)