return http server from .start
See original GitHub issueHi,
I’m running some unit tests with yoga and I’d like to close the server programatically but the http server isn’t accessible, and express doesn’t offer .close()
. Would you be open to a pr that adds the httpServer as a property? or is there a better way to achieve this result?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:9 (3 by maintainers)
Top Results From Across the Web
When does an HTTP server start returning data?
After a connection has been established between client and server, the client starts sending an HTTP request. This consists of a line that...
Read more >HTTP servers — Python 3.11.1 documentation
This class is identical to HTTPServer but uses threads to handle requests by using the ThreadingMixIn . This is useful to handle web...
Read more >How To Create a Web Server in Node.js with the HTTP ...
Step 1 — Creating a Basic HTTP Server. Let's start by creating a server that returns plain text to the user. This will...
Read more >How do you set up a local testing server? - MDN Web Docs
Open your command prompt (Windows) / terminal (macOS/ Linux). To check if Python is installed, enter the following command: · This should return...
Read more >HttpServer (Java HTTP Server )
Then, all open TCP connections are closed, the background thread created by start() exits, and the method returns. Once stopped, a HttpServer cannot...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there any other way to get the http instance thant start ? Because for my tests with supertest i don’t want to start my server explicitly.
@JorgeCeja,
The http instance is returned from the
server.start()
method and not theserver
constructor. So check that you are invoking the method on the http instance and not the graphql server instance.