lib/angelo.rb in angelo-0.3.1 vs lib/angelo.rb in angelo-0.3.2
- old
+ new
@@ -16,10 +16,12 @@
ROUTABLE = [:get, :post, :put, :delete, :options, :websocket]
HTTPABLE = [:get, :post, :put, :delete, :options]
STATICABLE = [:get, :head]
+ ACCEPT_REQUEST_HEADER_KEY = 'Accept'
+
CONTENT_TYPE_HEADER_KEY = 'Content-Type'
CONTENT_DISPOSITION_HEADER_KEY = 'Content-Disposition'
CONTENT_LENGTH_HEADER_KEY = 'Content-Length'
ATTACHMENT_CONTENT_DISPOSITION = 'attachment; filename="%s"'
ETAG_HEADER_KEY = 'ETag'
@@ -29,10 +31,11 @@
HTML_TYPE = 'text/html'
JSON_TYPE = 'application/json'
FORM_TYPE = 'application/x-www-form-urlencoded'
FILE_TYPE = 'application/octet-stream'
- JS_TYPE = 'text/javascript'
+ JS_TYPE = 'application/javascript'
+ XML_TYPE = 'application/xml'
DEFAULT_ADDR = '127.0.0.1'
DEFAULT_PORT = 4567
DEFAULT_VIEWS_DIR = 'views'