lib/angelo.rb in angelo-0.1.10 vs lib/angelo.rb in angelo-0.1.11

- old
+ new

@@ -12,11 +12,11 @@ POST = 'POST' PUT = 'PUT' DELETE = 'DELETE' OPTIONS = 'OPTIONS' - ROUTABLE = [:get, :post, :put, :delete, :socket] + ROUTABLE = [:get, :post, :put, :delete, :websocket] HTTPABLE = [:get, :post, :put, :delete] STATICABLE = [:get, :head] CONTENT_TYPE_HEADER_KEY = 'Content-Type' CONTENT_DISPOSITION_HEADER_KEY = 'Content-Disposition' @@ -48,9 +48,11 @@ DEFAULT_PING_TIME = 30 UNDERSCORE = '_' DASH = '-' EMPTY_STRING = '' + + HALT_STRUCT = Struct.new :status, :body def self.log connection, request, socket, status, body_size = '-' remote_ip = ->{ if socket.nil?