forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.rb
More file actions
59 lines (32 loc) · 1.05 KB
/
constants.rb
File metadata and controls
59 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module Github
module Constants
extend self
# Response headers
RATELIMIT_REMAINING = 'X-RateLimit-Remaining'.freeze
RATELIMIT_LIMIT = 'X-RateLimit-Limit'.freeze
CONTENT_TYPE = 'Content-Type'.freeze
CONTENT_LENGTH = 'content-length'.freeze
CACHE_CONTROL = 'cache-control'.freeze
ETAG = 'ETag'.freeze
SERVER = 'Server'.freeze
DATE = 'Date'.freeze
LOCATION = 'Location'.freeze
USER_AGENT = 'User-Agent'.freeze
ACCEPT = 'Accept'.freeze
ACCEPT_CHARSET = 'Accept-Charset'.freeze
OAUTH_SCOPES = 'X-Oauth-Scopes'.freeze
ACCEPTED_OAUTH_SCOPES = 'X-Accepted-Oauth-Scopes'.freeze
# Link headers
HEADER_LINK = "Link".freeze
HEADER_NEXT = "X-Next".freeze
HEADER_LAST = "X-Last".freeze
META_REL = "rel".freeze
META_LAST = "last".freeze
META_NEXT = "next".freeze
META_FIRST = "first".freeze
META_PREV = "prev".freeze
PARAM_PAGE = "page".freeze
PARAM_PER_PAGE = "per_page".freeze
PARAM_START_PAGE = "start_page".freeze
end # Constants
end # Github