module Firehose::Rack

Constants

ASYNC_RESPONSE

Evented web servers recognize the -1 HTTP code as a response deferral, which is needed to stream responses via WebSockets or HTTP long polling.

CORS_OPTIONS_MAX_AGE

Disable CORS preflight caches for requests in development mode.

LAST_MESSAGE_SEQUENCE_HEADER

Normally we’d want to use a custom header to reduce the likelihood of some HTTP middleware clobbering the value. But Safari seems to ignore our CORS header instructions, so we are using ‘pragma’ because it is always allowed.

RACK_LAST_MESSAGE_SEQUENCE_HEADER

Rack wants the header to start with HTTP, so we deal with that here.