Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: use server-buffer to serve GTFS-RT data #1

Open
derhuerst opened this issue Dec 5, 2021 · 0 comments
Open

proposal: use server-buffer to serve GTFS-RT data #1

derhuerst opened this issue Dec 5, 2021 · 0 comments

Comments

@derhuerst
Copy link

During the development of hafas-gtfs-rt-feed (sort of the German equivalent of this project), I also wrote serve-buffer:

Serve a Buffer via HTTP, with Range, conditional GET and GZip/Brotli compression support.

There is a surprising number of difficult-to-understand corner cases in the HTTP RFCs. I tried my best here, so that others don't have to write quick-and-dirty (which in the HTTP realm usually means slightly wrong) implementations. This library supports the following request headers:

This project could use server-buffer to enable client-side caching for the GTFS-RT feed.

hafas-gtfs-rt-feed uses it like this: https://github.com/derhuerst/hafas-gtfs-rt-feed/blob/b2afbf78a9697cceddd97330e663ca8bbb00eae9/lib/serve.js#L120-L143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant