Sha256: 6d70ebd8c15dd207e63141e36bc81aca2b3a41163a3821a3397220bb7bf99303

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

require "servent/version"
require "servent/event_source"

module Servent
  COLON = "\u{003A}".freeze
  KNOWN_EVENTS = %w[event id retry data].freeze

  CONNECTING = 0
  OPEN       = 1
  CLOSED     = 2

  REDIRECT_STATUSES      = [301, 302, 303, 307]
  RECONNECTION_STATUSES  = [500, 502, 503, 504]
  AUTHORIZATION_STATUSES = [305, 401, 407]

  KNOWN_STATUSES = [200]  +
    REDIRECT_STATUSES     +
    RECONNECTION_STATUSES +
    AUTHORIZATION_STATUSES
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
servent-0.1.0 lib/servent.rb