1
0
mirror of synced 2025-12-22 19:34:15 -05:00

Updates REST API examples to HTTP/2 (#6002)

This commit is contained in:
Lucas Alves
2021-05-06 18:30:50 -03:00
committed by GitHub
parent ef77a33633
commit df1ae6420c
10 changed files with 38 additions and 38 deletions

View File

@@ -45,7 +45,7 @@ The event objects returned from the Events API endpoints have the same structure
This example shows the format of the [WatchEvent](#watchevent) response when using the [Events API](/rest/reference/activity#events).
```
HTTP/1.1 200 OK
HTTP/2 200
Link: <https://api.github.com/resource?page=2>; rel="next",
<https://api.github.com/resource?page=5>; rel="last"
```

View File

@@ -61,7 +61,7 @@ Also, the `User-Agent` for the requests will have the prefix `GitHub-Hookshot/`.
#### Example delivery
```shell
> POST /payload HTTP/1.1
> POST /payload HTTP/2
> Host: localhost:4567
> X-GitHub-Delivery: 72d3162e-cc78-11e3-81ab-4c9367dc0958{% if enterpriseServerVersions contains currentVersion or currentVersion == "github-ae@latest" %}