Updates REST API examples to HTTP/2 (#6002)
This commit is contained in:
@@ -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"
|
||||
```
|
||||
|
||||
@@ -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" %}
|
||||
|
||||
Reference in New Issue
Block a user