Sha256: b069eb526b2eb52a32e35b029c99f77533bac88ffeda5e6c9e050da3ab528309

Contents?: true

Size: 1018 Bytes

Versions: 10

Compression:

Stored size: 1018 Bytes

Contents

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

    # 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

    # URI parsing
    QUERY_STR_SEP = '?'.freeze


  end # Constants
end # Github

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
github_api-0.8.2 lib/github_api/constants.rb
github_api-0.8.1 lib/github_api/constants.rb
github_api-0.8.0 lib/github_api/constants.rb
github_api-0.7.2 lib/github_api/constants.rb
github_api-0.7.1 lib/github_api/constants.rb
github_api-0.7.0 lib/github_api/constants.rb
github_api-0.6.5 lib/github_api/constants.rb
github_api-0.6.4 lib/github_api/constants.rb
github_api-0.6.3 lib/github_api/constants.rb
github_api-0.6.2 lib/github_api/constants.rb