metropolis.git  about / heads / tags
key-value store for Rack
blob d0a0ffd27085bc24709c17b7939f9f709f2a4872 644 bytes (raw)
$ git show HEAD:lib/metropolis/constants.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
# -*- encoding: binary -*-
module Metropolis::Constants

  # response headers, frozen for speed since they're settable hash keys
  Content_Length = "Content-Length".freeze
  Content_Type = "Content-Type".freeze
  Content_Encoding = "Content-Encoding".freeze
  Vary = "Vary".freeze

  Text_Plain = "text/plain"
  Accept_Encoding = "Accept-Encoding"

  # request headers, no need to freeze since we only read them
  Rack_Input = "rack.input"
  PATH_INFO = "PATH_INFO"
  REQUEST_METHOD = "REQUEST_METHOD"
  HTTP_ACCEPT_ENCODING = "HTTP_ACCEPT_ENCODING"
  HTTP_CONTENT_ENCODING = "HTTP_CONTENT_ENCODING"
  HTTP_X_TT_PDMODE = "HTTP_X_TT_PDMODE"
end

git clone https://yhbt.net/metropolis.git