Skip to content
This repository was archived by the owner on Jun 11, 2023. It is now read-only.
This repository was archived by the owner on Jun 11, 2023. It is now read-only.

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

@derhuerst

Description

@derhuerst

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


related: FlashWebIT/Iasi-GTFS-Realtime-Vehicle-Positions#1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions