Sha256: 55b3a2c87eb464d4f372ed196ae0c7d2b8b5d59ff7b0908ba4707b643929947d

Contents?: true

Size: 1.12 KB

Versions: 6

Compression:

Stored size: 1.12 KB

Contents

require 'uri'

require 'http/parser'
require 'http'

require 'celluloid/autostart'
require 'celluloid/io'

require 'reel/version'

require 'reel/mixins'
require 'reel/connection'
require 'reel/logger'
require 'reel/request_info'
require 'reel/request'
require 'reel/request_body'
require 'reel/request_parser'
require 'reel/response'
require 'reel/response_writer'
require 'reel/server'
require 'reel/ssl_server'
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

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
reel-0.4.0 lib/reel.rb
reel-0.4.0.pre7 lib/reel.rb
reel-0.4.0.pre6 lib/reel.rb
reel-0.4.0.pre5 lib/reel.rb
reel-0.4.0.pre4 lib/reel.rb
reel-0.4.0.pre3 lib/reel.rb