GeezerVison is showing github.com — doc: add authority and scheme psuedo headers · nodejs/node@71e520c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/http2.md +20Lines changed: 20 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2654,6 +2654,16 @@ added: v10.1.0 |
2654 | 2654 | The `request.aborted` property will be `true` if the request has |
2655 | 2655 | been aborted. |
2656 | 2656 |
|
| 2657 | +#### request.authority |
| 2658 | +<!-- YAML |
| 2659 | +added: v8.4.0 |
| 2660 | +--> |
| 2661 | + |
| 2662 | +* {string} |
| 2663 | + |
| 2664 | +The request authority pseudo header field. It can also be accessed via |
| 2665 | +`req.headers[':authority']`. |
| 2666 | + |
2657 | 2667 | #### request.destroy([error]) |
2658 | 2668 | <!-- YAML |
2659 | 2669 | added: v8.4.0 |
@@ -2762,6 +2772,16 @@ added: v8.4.0 |
2762 | 2772 | The raw request/response trailer keys and values exactly as they were |
2763 | 2773 | received. Only populated at the `'end'` event. |
2764 | 2774 |
|
| 2775 | +#### request.scheme |
| 2776 | +<!-- YAML |
| 2777 | +added: v8.4.0 |
| 2778 | +--> |
| 2779 | + |
| 2780 | +* {string} |
| 2781 | + |
| 2782 | +The request scheme pseudo header field indicating the scheme |
| 2783 | +portion of the target URL. |
| 2784 | + |
2765 | 2785 | #### request.setTimeout(msecs, callback) |
2766 | 2786 | <!-- YAML |
2767 | 2787 | added: v8.4.0 |
|