Module: PicklesHttpServer::Utils
- Includes:
- ContentTypes, HttpStatusCodes, LogMode, RequestMethods
- Defined in:
- lib/pickles_http/utils.rb
Defined Under Namespace
Classes: Request
Constant Summary
Constants included from RequestMethods
RequestMethods::DELETE, RequestMethods::GET, RequestMethods::OPTIONS, RequestMethods::POST, RequestMethods::PUT
Constants included from LogMode
LogMode::DEBUG, LogMode::ERROR, LogMode::FATAL, LogMode::INFO, LogMode::SEVERITIES, LogMode::WARN
Constants included from ContentTypes
ContentTypes::HTML, ContentTypes::JSON, ContentTypes::MJS, ContentTypes::MP3
Constants included from HttpStatusCodes
HttpStatusCodes::BAD_REQUEST, HttpStatusCodes::INTERNAL_SERVER_ERROR, HttpStatusCodes::NOT_FOUND, HttpStatusCodes::OK
Class Method Summary collapse
Class Method Details
.parse_request(client, body, headers) ⇒ Object
174 175 176 |
# File 'lib/pickles_http/utils.rb', line 174 def self.parse_request(client, body, headers) Request.new(client, body, headers) end |