Sha256: 294bc9677769b5d409b381f0ac23e0918b420919dcda62636862eccb47ce7467

Contents?: true

Size: 826 Bytes

Versions: 16

Compression:

Stored size: 826 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

    ETAG = 'ETag'.freeze

    SERVER = 'Server'.freeze

    DATE = 'Date'.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

16 entries across 16 versions & 1 rubygems

Version Path
github_api-0.5.4 lib/github_api/constants.rb
github_api-0.5.3 lib/github_api/constants.rb
github_api-0.5.2 lib/github_api/constants.rb
github_api-0.5.1 lib/github_api/constants.rb
github_api-0.5.0 lib/github_api/constants.rb
github_api-0.5.0.rc1 lib/github_api/constants.rb
github_api-0.4.11 lib/github_api/constants.rb
github_api-0.4.10 lib/github_api/constants.rb
github_api-0.4.9 lib/github_api/constants.rb
github_api-0.4.8 lib/github_api/constants.rb
github_api-0.4.7 lib/github_api/constants.rb
github_api-0.4.6 lib/github_api/constants.rb
github_api-0.4.5 lib/github_api/constants.rb
github_api-0.4.4 lib/github_api/constants.rb
github_api-0.4.3 lib/github_api/constants.rb
github_api-0.4.2 lib/github_api/constants.rb