Sha256: 1cacdab44afe298f70f5bef4ffec98fe1fc1e176cae4ae81ff564378bb4f17ba

Contents?: true

Size: 1.05 KB

Versions: 18

Compression:

Stored size: 1.05 KB

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

    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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
github_api-0.12.2 lib/github_api/constants.rb
github_api-0.12.1 lib/github_api/constants.rb
github_api-0.12.0 lib/github_api/constants.rb
github_api-0.11.3 lib/github_api/constants.rb
github_api-0.11.2 lib/github_api/constants.rb
github_api-0.11.1 lib/github_api/constants.rb
github_api-0.11.0 lib/github_api/constants.rb
github_api-0.10.2 lib/github_api/constants.rb
github_api-0.10.1 lib/github_api/constants.rb
github_api-0.10.0 lib/github_api/constants.rb
github_api-0.9.7 lib/github_api/constants.rb
github_api-0.9.6 lib/github_api/constants.rb
github_api-0.9.5 lib/github_api/constants.rb
github_api-0.9.4 lib/github_api/constants.rb
github_api-0.9.3 lib/github_api/constants.rb
github_api-0.9.2 lib/github_api/constants.rb
github_api-0.9.1 lib/github_api/constants.rb
github_api-0.9.0 lib/github_api/constants.rb