Module: Server
- Defined in:
- lib/server/server.rb,
lib/server/request.rb,
lib/server/response.rb,
lib/server/dispatcher.rb
Defined Under Namespace
Classes: Dispatcher, Request, Response, Server
Constant Summary
- CONTENT_TYPE_MAPPING =
Map extensions to their content type
{ 'html' => 'text/html', 'txt' => 'text/plain', 'png' => 'image/png', 'jpg' => 'image/jpeg', 'ico' => 'image/x-icon', 'js' => 'text/javascript', 'css' => 'text/css', 'php' => 'text/html' }
- DEFAULT_CONTENT_TYPE =
Treat as binary data if content type cannot be found
'application/octet-stream'