Sha256: 72a1294966fda072b0dfecacf080ce843bddc48ed24d9bcf0735dc825ef659de

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

require 'uri'

require 'celluloid/autostart'
require 'http/parser'
require 'http'
require 'celluloid/io'

require 'reel/version'
require 'reel/mixins'
require 'reel/connection'
require 'reel/logger'
require 'reel/request'
require 'reel/response'

require 'reel/server'
require 'reel/server/http'
require 'reel/server/https'
require 'reel/server/unix' unless RUBY_PLATFORM == 'java'

require 'reel/websocket'
require 'reel/stream'

# A Reel good HTTP server
module Reel
  # Error reading a request
  class RequestError < StandardError; end

  # Error occurred performing IO on a socket
  class SocketError < RequestError; end

  # Error occurred when trying to use the socket after it was upgraded
  class SocketUpgradedError < NilClass
    def self.method_missing(m, *)
      raise(Reel::RequestError, 'Reel::Connection#socket can not be used anymore as it was upgraded. Use Reel::WebSocket instance instead.')
    end
  end

  # Error occured during a WebSockets handshake
  class HandshakeError < RequestError; end

  # The method given was not understood
  class UnsupportedMethodError < ArgumentError; end

  # wrong state for a given operation
  class StateError < RuntimeError; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reel-0.6.0.pre5 lib/reel.rb