lib/angelo.rb in angelo-0.1.1 vs lib/angelo.rb in angelo-0.1.2

- old
+ new

@@ -14,18 +14,28 @@ DELETE = 'DELETE' OPTIONS = 'OPTIONS' ROUTABLE = [:get, :post, :put, :delete, :socket] HTTPABLE = [:get, :post, :put, :delete] + STATICABLE = [:get, :head] CONTENT_TYPE_HEADER_KEY = 'Content-Type' + CONTENT_DISPOSITION_HEADER_KEY = 'Content-Disposition' + CONTENT_LENGTH_HEADER_KEY = 'Content-Length' + DEFAULT_CONTENT_DISPOSITION = 'attachment' + ETAG_HEADER_KEY = 'ETag' + IF_NONE_MATCH_HEADER_KEY = 'If-None-Match' HTML_TYPE = 'text/html' JSON_TYPE = 'application/json' FORM_TYPE = 'application/x-www-form-urlencoded' + FILE_TYPE = 'application/octet-stream' DEFAULT_ADDR = '127.0.0.1' DEFAULT_PORT = 4567 + + DEFAULT_VIEW_DIR = 'views' + DEFAULT_PUBLIC_DIR = 'public' DEFAULT_RESPONSE_HEADERS = { CONTENT_TYPE_HEADER_KEY => HTML_TYPE }