Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scripting/http
The heart of a Node-based web server to be included in other apps. I got tired of writing the same code over and over.
https://github.com/scripting/http
Last synced: 3 months ago
JSON representation
The heart of a Node-based web server to be included in other apps. I got tired of writing the same code over and over.
- Host: GitHub
- URL: https://github.com/scripting/http
- Owner: scripting
- License: mit
- Created: 2017-06-08T21:47:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-30T16:45:39.000Z (almost 2 years ago)
- Last Synced: 2024-04-25T23:03:01.280Z (7 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 4
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - scripting/http - The heart of a Node-based web server to be included in other apps. I got tired of writing the same code over and over. (others)
README
### The basics of an HTTP server
This code was showing up all over the place. Handle an HTTP request with logging. A few other amenities. Rather than do a crappy job over and over, I decided to do a good job once, then reuse the result. There's still more work to do, but it's useful right now as-is.
Dave Winer
### Updates
#### 1/30/23 by DW -- v0.5.0
Changed urlDefaultFavicon so it isn't http-specific. We want to run this behind an HTTPS server.
A lot of missing notes. I promise to do better. ;-)
#### 10/23/20 by DW
Added a call to console.trace when there's an error in handling an HTTP request. Without it, it's hard to tell where the errant code was.
#### 1/3/18 by DW
Added support for POST messages. We store the post body in theRequest.postBody. Now the app doesn't have to do this for itself.
### source.opml
This file which appears in all my recent repositories contains the outline I use to work on this package.
You can read this code in the outline format, by clicking this link.