Skip to content

Commit dc69103

Browse files
authored
Merge pull request #112 from lann/spin-client-addr-optional
Document spin-client-addr header as optional
2 parents a47d5eb + 209fd2f commit dc69103

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

content/v1/http-trigger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ As well as any headers passed by the client, Spin sets several headers on the re
278278
| `spin-raw-component-route` | The component route pattern matched, as written in the component manifest (that is, _excluding_ the base, but including the wildcard indicator if present) | `/users/...` |
279279
| `spin-component-route` | The component route pattern matched, _excluding_ any wildcard indicator | `/users` |
280280
| `spin-base-path` | The application base path | `/shop` |
281-
| `spin-client-addr` | The IP address and port of the client | `127.0.0.1:53152` |
281+
| `spin-client-addr` | The IP address and port of the client. Some Spin runtimes do not set this header. | `127.0.0.1:53152` |
282282

283283
### Inside HTTP Components
284284

content/v2/http-trigger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ As well as any headers passed by the client, Spin sets several headers on the re
362362
| `spin-raw-component-route` | The component route pattern matched, as written in the component manifest (that is, _excluding_ the base, but including the wildcard indicator if present) | `/users/:userid/cart/...` |
363363
| `spin-component-route` | The component route pattern matched, _excluding_ any wildcard indicator | `/users/:userid/cart` |
364364
| `spin-base-path` | The application base path | `/shop` |
365-
| `spin-client-addr` | The IP address and port of the client | `127.0.0.1:53152` |
365+
| `spin-client-addr` | The IP address and port of the client. Some Spin runtimes do not set this header. | `127.0.0.1:53152` |
366366

367367
### Inside HTTP Components
368368

content/v3/http-trigger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ As well as any headers passed by the client, Spin sets several headers on the re
355355
| `spin-matched-route` | The part of the trigger route that was matched by the route (including the wildcard indicator if present) | `/users/:userid/cart/...` |
356356
| `spin-raw-component-route` | The component route pattern matched, including the wildcard indicator if present | `/users/:userid/cart/...` |
357357
| `spin-component-route` | The component route pattern matched, _excluding_ any wildcard indicator | `/users/:userid/cart` |
358-
| `spin-client-addr` | The IP address and port of the client | `127.0.0.1:53152` |
358+
| `spin-client-addr` | The IP address and port of the client. Some Spin runtimes do not set this header. | `127.0.0.1:53152` |
359359

360360
### Inside HTTP Components
361361

0 commit comments

Comments
 (0)