| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,6 +33,16 @@ or the [PubSubHubbub API](#pubsubhubbub). | |||
| 33 | 33 | ||
| 34 | 34 | POST /repos/:owner/:repo/hooks | |
| 35 | 35 | ||
| 36 | + ### Webhook Headers | ||
| 37 | + | ||
| 38 | + GitHub will send along a few HTTP headers to differentiate between event types and payload identifiers. | ||
| 39 | + | ||
| 40 | + Name | Description | ||
| 41 | + -----|-----------| | ||
| 42 | + `HTTP_X_GITHUB_EVENT` | The [event type](#events) that was triggered. | ||
| 43 | + `HTTP_X_GITHUB_DELIVERY` | A [guid][guid] to identify the payload and event being sent. | ||
| 44 | + `HTTP_X_GITHUB_SIGNATURE` | The value of this header is computed as the HMAC hex digest of the body, using the `secret` config option as the key. | ||
| 45 | + | ||
| 36 | 46 | ### Parameter | |
| 37 | 47 | ||
| 38 | 48 | Name | Type | Description | |
@@ -197,4 +207,4 @@ Name | Type | Description | |||
| 197 | 207 | [hub-signature]: https://github.com/github/github-services/blob/f3bb3dd780feb6318c42b2db064ed6d481b70a1f/lib/service/http_helper.rb#L77 | |
| 198 | 208 | [pshb-secret]: http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.3.html#authednotify | |
| 199 | 209 | [events-url]: /webhooks/#events | |
| 200 | - [ping-event-url]: /webhooks/#ping-event | ||
| 210 | + [ping-event-url]: /webhooks/#ping-event | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments