Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
efa439a
redesign the client API to closely follow GitHub
philschatz May 9, 2014
093807d
convert camelize JSON and make _url fetchable
philschatz May 9, 2014
6133b6f
Make GitHub types almost first-class
philschatz May 9, 2014
e87566e
move old octokit
philschatz May 10, 2014
671e56c
split to separate files
philschatz May 10, 2014
3bd1380
change coffee script so it loads
philschatz May 10, 2014
bca1856
split promise helpers out, unify method names
philschatz May 10, 2014
53e43cc
add issues API
philschatz May 12, 2014
e3c5839
convert dates from string to Date
philschatz May 12, 2014
c47a4fc
allow browser support
philschatz May 13, 2014
33e3982
make collaborators return boolean
philschatz May 13, 2014
d0f9081
move search to querystring
philschatz May 13, 2014
70bc09a
throw error if required arg missing
philschatz May 13, 2014
fa221e8
fix browser tests
philschatz May 13, 2014
29cffd0
add User tests
philschatz May 13, 2014
2f76716
add Org tests
philschatz May 13, 2014
3d37d72
use config for Types
philschatz May 15, 2014
c2bdd7a
resolve version of coffee-script
philschatz May 15, 2014
c403032
add starring and gist tests
philschatz May 15, 2014
63a0030
add public gists
philschatz May 15, 2014
3fcc2a8
add star test
philschatz May 15, 2014
023ad6c
remove compile from grunt test
philschatz May 15, 2014
0141fb4
add binary blob creation
philschatz May 15, 2014
498fb68
update git tags and trees
philschatz May 15, 2014
9a27993
update issues
philschatz May 15, 2014
df454df
update assignees
philschatz May 15, 2014
40450de
add issues tests
philschatz May 15, 2014
712ab43
add sepia fixtures
philschatz May 15, 2014
8b93f00
add comment updating
philschatz May 15, 2014
74078d9
add Comment type
philschatz May 15, 2014
da60995
fix autogen methods
philschatz May 16, 2014
0a1e404
update refs/heads methods
philschatz May 16, 2014
eddf51d
vastly simplify the library
philschatz May 17, 2014
ba0303d
add misc APIs
philschatz May 17, 2014
85f4e0b
add paged results
philschatz May 17, 2014
45c22ba
add feeds API
philschatz May 17, 2014
09d4789
add repo pages
philschatz May 17, 2014
f3829bc
add releases and assets
philschatz May 17, 2014
a3cddd0
add repo statistics
philschatz May 17, 2014
590914d
add a URL validator
philschatz May 17, 2014
e3fc388
fix typo
philschatz May 17, 2014
d52c08e
add sepia.js for browser tests
philschatz May 17, 2014
a32e510
run koch tests in the browser
philschatz May 17, 2014
4bb2760
update es6-promise version
philschatz May 17, 2014
ccd8b7f
reduce the set of properties on an object
philschatz May 17, 2014
ff817b2
rename batcher to chainer
philschatz May 17, 2014
b22b26f
exclude header names from fixtures
philschatz May 17, 2014
0564196
remove whitespace
philschatz May 17, 2014
775c693
add commits to the grammar
philschatz May 20, 2014
425a350
add support for callbacks in addition to Promise
philschatz May 20, 2014
525f97e
fix allPromises code
philschatz May 20, 2014
b566fa0
rename dasherize to uncamelize
philschatz May 20, 2014
24f3387
add support for more API calls
philschatz May 20, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.DS_Store
node_modules
bower_components
/node_modules
/bower_components
19 changes: 16 additions & 3 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ module.exports = (grunt) ->
reporter: 'Dot'



mocha_phantomjs:
all:
options:
urls: [ 'http://localhost:9876/test/index.html' ]

connect:
server:
options:
port: 9876
base: '.'



# Dependencies
# ============
for name of pkg.dependencies when name.substring(0, 6) is 'grunt-'
Expand All @@ -102,10 +116,9 @@ module.exports = (grunt) ->
# Travis CI
# -----
grunt.registerTask 'test', [
'coffeelint'
'clean'
'coffee'
'mochaTest'
'connect'
'mocha_phantomjs'
#'blanket_mocha' NOTE: Uncomment once the `suiteURL` problem noted above is fixed
]

Expand Down
5 changes: 5 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"mocha": "~1.16.2"
},
"devDependencies": {
"requirejs": "~2.1.9",
"require-cs": "~0.4.4",
"coffee-script": ">=1.3"
},
"resolutions": {
"coffee-script": ">=1.3"
}
}
1 change: 1 addition & 0 deletions fixtures/generated/00282c52c3498c3898594bbe97c9650c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":14854242,"name":"octokit-test-repo","full_name":"octokit-test/octokit-test-repo","owner":{"login":"octokit-test","id":6076381,"avatar_url":"https://avatars.githubusercontent.com/u/6076381?","gravatar_id":"c643d2fcba0cddd8192ed2a2eb9ba34f","url":"https://api.github.com/users/octokit-test","html_url":"https://github.com/octokit-test","followers_url":"https://api.github.com/users/octokit-test/followers","following_url":"https://api.github.com/users/octokit-test/following{/other_user}","gists_url":"https://api.github.com/users/octokit-test/gists{/gist_id}","starred_url":"https://api.github.com/users/octokit-test/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokit-test/subscriptions","organizations_url":"https://api.github.com/users/octokit-test/orgs","repos_url":"https://api.github.com/users/octokit-test/repos","events_url":"https://api.github.com/users/octokit-test/events{/privacy}","received_events_url":"https://api.github.com/users/octokit-test/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/octokit-test/octokit-test-repo","description":"Test Repository for","fork":false,"url":"https://api.github.com/repos/octokit-test/octokit-test-repo","forks_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/forks","keys_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/teams","hooks_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/hooks","issue_events_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/issues/events{/number}","events_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/events","assignees_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/assignees{/user}","branches_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/branches{/branch}","tags_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/tags","blobs_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/statuses/{sha}","languages_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/languages","stargazers_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/stargazers","contributors_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/contributors","subscribers_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/subscribers","subscription_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/subscription","commits_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/issues/comments/{number}","contents_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/contents/{+path}","compare_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/merges","archive_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/downloads","issues_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/issues{/number}","pulls_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/pulls{/number}","milestones_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/milestones{/number}","notifications_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/labels{/name}","releases_url":"https://api.github.com/repos/octokit-test/octokit-test-repo/releases{/id}","created_at":"2013-12-02T06:03:33Z","updated_at":"2014-05-17T18:04:49Z","pushed_at":"2014-05-16T00:45:42Z","git_url":"git://github.com/octokit-test/octokit-test-repo.git","ssh_url":"git@github.com:octokit-test/octokit-test-repo.git","clone_url":"https://github.com/octokit-test/octokit-test-repo.git","svn_url":"https://github.com/octokit-test/octokit-test-repo","homepage":"http://example.com","size":2932,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master","permissions":{"admin":true,"push":true,"pull":true}}]
42 changes: 42 additions & 0 deletions fixtures/generated/00282c52c3498c3898594bbe97c9650c.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"statusCode": 200,
"headers": {
"server": "GitHub.com",
"date": "Sat, 17 May 2014 18:13:29 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4871",
"x-ratelimit-reset": "1400353465",
"cache-control": "private, max-age=60, s-maxage=60",
"etag": "\"e04fd9cba1a7ca5260a39b9f3029da57\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "5175",
"access-control-allow-credentials": "true",
"access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:3040:68AAD8E:5377A6C9",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "c436b2b44345c72ff906059f604991e7"
},
"url": "https://api.github.com:443/user/repos",
"time": 302,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/01445f6028f5b4474e742c5dcc10618a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"login":"octokit-test","id":6076381,"avatar_url":"https://avatars.githubusercontent.com/u/6076381?","gravatar_id":"c643d2fcba0cddd8192ed2a2eb9ba34f","url":"https://api.github.com/users/octokit-test","html_url":"https://github.com/octokit-test","followers_url":"https://api.github.com/users/octokit-test/followers","following_url":"https://api.github.com/users/octokit-test/following{/other_user}","gists_url":"https://api.github.com/users/octokit-test/gists{/gist_id}","starred_url":"https://api.github.com/users/octokit-test/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokit-test/subscriptions","organizations_url":"https://api.github.com/users/octokit-test/orgs","repos_url":"https://api.github.com/users/octokit-test/repos","events_url":"https://api.github.com/users/octokit-test/events{/privacy}","received_events_url":"https://api.github.com/users/octokit-test/received_events","type":"User","site_admin":false},{"login":"octokit-test2","id":6079203,"avatar_url":"https://avatars.githubusercontent.com/u/6079203?","gravatar_id":"8bac7207033720c41a552c8ca5761a58","url":"https://api.github.com/users/octokit-test2","html_url":"https://github.com/octokit-test2","followers_url":"https://api.github.com/users/octokit-test2/followers","following_url":"https://api.github.com/users/octokit-test2/following{/other_user}","gists_url":"https://api.github.com/users/octokit-test2/gists{/gist_id}","starred_url":"https://api.github.com/users/octokit-test2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokit-test2/subscriptions","organizations_url":"https://api.github.com/users/octokit-test2/orgs","repos_url":"https://api.github.com/users/octokit-test2/repos","events_url":"https://api.github.com/users/octokit-test2/events{/privacy}","received_events_url":"https://api.github.com/users/octokit-test2/received_events","type":"User","site_admin":false},{"login":"philschatz","id":253202,"avatar_url":"https://avatars.githubusercontent.com/u/253202?","gravatar_id":"230b534963782ec45db2e2dbf8bf6709","url":"https://api.github.com/users/philschatz","html_url":"https://github.com/philschatz","followers_url":"https://api.github.com/users/philschatz/followers","following_url":"https://api.github.com/users/philschatz/following{/other_user}","gists_url":"https://api.github.com/users/philschatz/gists{/gist_id}","starred_url":"https://api.github.com/users/philschatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philschatz/subscriptions","organizations_url":"https://api.github.com/users/philschatz/orgs","repos_url":"https://api.github.com/users/philschatz/repos","events_url":"https://api.github.com/users/philschatz/events{/privacy}","received_events_url":"https://api.github.com/users/philschatz/received_events","type":"User","site_admin":false}]
42 changes: 42 additions & 0 deletions fixtures/generated/01445f6028f5b4474e742c5dcc10618a.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"statusCode": 200,
"headers": {
"server": "GitHub.com",
"date": "Sat, 17 May 2014 18:13:17 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4908",
"x-ratelimit-reset": "1400353465",
"cache-control": "private, max-age=60, s-maxage=60",
"etag": "\"e9aa755b90dc63422bfa24ca6752dea5\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "2837",
"access-control-allow-credentials": "true",
"access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:303E:3E7C0B0:5377A6BD",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "a1d8c69b807c8e21f06cad9da377d1b0"
},
"url": "https://api.github.com:443/repos/octokit-test/octokit-test-repo/subscribers",
"time": 289,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/0272726ef38790482b3d27401f700ee6

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions fixtures/generated/0272726ef38790482b3d27401f700ee6.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"statusCode": 200,
"headers": {
"server": "GitHub.com",
"date": "Sat, 17 May 2014 18:13:13 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4919",
"x-ratelimit-reset": "1400353465",
"cache-control": "private, max-age=60, s-maxage=60",
"etag": "\"3541df1544aa3688b9430a5668923fce\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "repo",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "71059",
"access-control-allow-credentials": "true",
"access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:3040:68A96F8:5377A6B9",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "c436b2b44345c72ff906059f604991e7"
},
"url": "https://api.github.com:443/emojis",
"time": 428,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/067482a82199510a07ec2db0f69934f9
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"message":"Not Found","documentation_url":"https://developer.github.com/v3"}
38 changes: 38 additions & 0 deletions fixtures/generated/067482a82199510a07ec2db0f69934f9.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"statusCode": 404,
"headers": {
"server": "GitHub.com",
"date": "Sat, 17 May 2014 18:13:27 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "404 Not Found",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4878",
"x-ratelimit-reset": "1400353465",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "",
"x-github-media-type": "github.v3; param=raw",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "77",
"access-control-allow-credentials": "true",
"access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:303E:3E7C766:5377A6C7",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff"
},
"url": "https://api.github.com:443/users/octokit-test/following/defunkt",
"time": 363,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/09625f5a7a0c19cb29933d7cdf55c42a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"verifiable_password_authentication":true,"hooks":["192.30.252.0/22"],"git":["192.30.252.0/22"]}
42 changes: 42 additions & 0 deletions fixtures/generated/09625f5a7a0c19cb29933d7cdf55c42a.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"statusCode": 200,
"headers": {
"server": "GitHub.com",
"date": "Sat, 17 May 2014 18:13:14 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "200 OK",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4916",
"x-ratelimit-reset": "1400353465",
"cache-control": "private, max-age=60, s-maxage=60",
"etag": "\"b7f5d5197dc585a8d692f484a0328981\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "repo",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "97",
"access-control-allow-credentials": "true",
"access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:303F:554F3C4:5377A6BA",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff",
"x-served-by": "03d91026ad8428f4d9966d7434f9d82e"
},
"url": "https://api.github.com:443/meta",
"time": 266,
"request": {
"method": "GET",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com"
}
}
}
1 change: 1 addition & 0 deletions fixtures/generated/0c4eab40f55efe7f98942898701891c8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"sha":"5ab2f8a4323abafb10abb68657d9d39f1a775057","url":"https://api.github.com/repos/octokit-test/octokit-test-repo/git/blobs/5ab2f8a4323abafb10abb68657d9d39f1a775057"}
44 changes: 44 additions & 0 deletions fixtures/generated/0c4eab40f55efe7f98942898701891c8.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"statusCode": 201,
"headers": {
"server": "GitHub.com",
"date": "Sat, 17 May 2014 18:13:24 GMT",
"content-type": "application/json; charset=utf-8",
"connection": "close",
"status": "201 Created",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4889",
"x-ratelimit-reset": "1400353465",
"cache-control": "private, max-age=60, s-maxage=60",
"etag": "\"75bf11c660618b1479501d74ed4f81a3\"",
"x-oauth-scopes": "gist, repo, user",
"x-accepted-oauth-scopes": "",
"location": "https://api.github.com/repos/octokit-test/octokit-test-repo/git/blobs/5ab2f8a4323abafb10abb68657d9d39f1a775057",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP",
"x-github-media-type": "github.v3; param=raw",
"x-xss-protection": "1; mode=block",
"x-frame-options": "deny",
"content-security-policy": "default-src 'none'",
"content-length": "169",
"access-control-allow-credentials": "true",
"access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval",
"access-control-allow-origin": "*",
"x-github-request-id": "17757AFA:3040:68AA519:5377A6C3",
"strict-transport-security": "max-age=31536000",
"x-content-type-options": "nosniff"
},
"url": "https://api.github.com:443/repos/octokit-test/octokit-test-repo/git/blobs",
"time": 370,
"request": {
"method": "POST",
"headers": {
"User-Agent": "octokit",
"Accept": "application/vnd.github.raw",
"Content-Type": "application/json",
"If-Modified-Since": "Thu, 01 Jan 1970 00:00:00 GMT",
"Authorization": "token dca7f85a5911df8e9b7aeb4c5be8f5f50806ac49",
"Host": "api.github.com",
"Content-Length": 38
}
}
}
Loading