Module: David::Server::Mapping

Includes:
Constants
Included in:
Respond
Defined in:
lib/david/server/mapping.rb

Constant Summary collapse

HTTP_TO_COAP_CODES =
{
  200 => 205,
  202 => 201,
  203 => 205,
  204 => 205,
  304 => 203,
  407 => 401,
  408 => 400,
  409 => 412,
  410 => 404,
  411 => 402,
  414 => 402,
  505 => 500,
  506 => 500,
  511 => 500,
}.freeze
HTTP_TO_COAP_CODES_MINIMAL =
{
  200 => 205,
}.freeze

Constants included from Constants

Constants::ASCII_8BIT, Constants::COAP_CBOR, Constants::COAP_DTLS, Constants::COAP_DTLS_ID, Constants::COAP_DTLS_NOSEC, Constants::COAP_MULTICAST, Constants::COAP_VERSION, Constants::CONTENT_LENGTH, Constants::CONTENT_TYPE, Constants::CONTENT_TYPE_CBOR, Constants::CONTENT_TYPE_JSON, Constants::EMPTY_STRING, Constants::HTTP_ACCEPT, Constants::HTTP_CACHE_CONTROL, Constants::HTTP_CONTENT_LENGTH, Constants::HTTP_CONTENT_TYPE, Constants::HTTP_ETAG, Constants::HTTP_LOCATION, Constants::PATH_INFO, Constants::QUERY_STRING, Constants::RACK_ERRORS, Constants::RACK_INPUT, Constants::RACK_LOGGER, Constants::RACK_MULTIPROCESS, Constants::RACK_MULTITHREAD, Constants::RACK_RUN_ONCE, Constants::RACK_URL_SCHEME, Constants::RACK_URL_SCHEME_HTTP, Constants::RACK_VERSION, Constants::REMOTE_ADDR, Constants::REMOTE_PORT, Constants::REQUEST_METHOD, Constants::SCRIPT_NAME, Constants::SERVER_NAME, Constants::SERVER_PORT