|
191 | 191 | "text/markdown": [ |
192 | 192 | "---\n", |
193 | 193 | "\n", |
194 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/net.py#L64){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 194 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/net.py#L67){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
195 | 195 | "\n", |
196 | 196 | "#### HTTP4xxClientError\n", |
197 | 197 | "\n", |
|
202 | 202 | "text/plain": [ |
203 | 203 | "---\n", |
204 | 204 | "\n", |
205 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/net.py#L64){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 205 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/net.py#L67){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
206 | 206 | "\n", |
207 | 207 | "#### HTTP4xxClientError\n", |
208 | 208 | "\n", |
|
230 | 230 | "text/markdown": [ |
231 | 231 | "---\n", |
232 | 232 | "\n", |
233 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/net.py#L69){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 233 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/net.py#L72){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
234 | 234 | "\n", |
235 | 235 | "#### HTTP5xxServerError\n", |
236 | 236 | "\n", |
|
241 | 241 | "text/plain": [ |
242 | 242 | "---\n", |
243 | 243 | "\n", |
244 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/net.py#L69){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 244 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/net.py#L72){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
245 | 245 | "\n", |
246 | 246 | "#### HTTP5xxServerError\n", |
247 | 247 | "\n", |
|
347 | 347 | "====Error Body====\n", |
348 | 348 | "{\n", |
349 | 349 | " \"message\": \"Not Found\",\n", |
350 | | - " \"documentation_url\": \"https://docs.github.com/rest\"\n", |
| 350 | + " \"documentation_url\": \"https://docs.github.com/rest\",\n", |
| 351 | + " \"status\": \"404\"\n", |
351 | 352 | "}\n", |
352 | 353 | "\n" |
353 | 354 | ] |
|
387 | 388 | "outputs": [], |
388 | 389 | "source": [ |
389 | 390 | "#|export\n", |
390 | | - "def urljson(url, data=None, timeout=None):\n", |
| 391 | + "def urljson(url, data=None, headers=None, timeout=None):\n", |
391 | 392 | " \"Retrieve `url` and decode json\"\n", |
392 | | - " res = urlread(url, data=data, timeout=timeout)\n", |
| 393 | + " res = urlread(url, data=data, headers=headers, timeout=timeout)\n", |
393 | 394 | " return json.loads(res) if res else {}" |
394 | 395 | ] |
395 | 396 | }, |
|
0 commit comments