Gregor 5bf104c841 feat: `response.status` | 6 سال پیش | |
---|---|---|
.. | ||
README.md | 7 سال پیش | |
get-buffer-response-browser.js | 7 سال پیش | |
get-buffer-response.js | 7 سال پیش | |
http-error.js | 6 سال پیش | |
index.js | 7 سال پیش | |
is-array-buffer.js | 7 سال پیش | |
request.js | 6 سال پیش |
[back to @octokit/rest
]('../..')
@octokit/rest/request
Turn REST API endpoint options into generic request options
const octokitRestRequest = require('@octokit/rest/lib/request')
octokitRestRequest({
// request options
method: 'GET',
url: '/orgs/:org/repos',
// parameters
org: 'octokit',
type: 'private'
}) // returns promise
Sends a GET
request to https://api.github.com/orgs/octokit/repos?type=private&per_page=20&page=2
with user-agent
and accept
headers set.
It accepts the same options and has the same defaults as @octokit/rest/endpoint