You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fermyon Wasm Functions currently supports the [`http` trigger type](https://spinframework.dev/v3/http-trigger) for Spin applications.
11
+
12
+
# HTTP Requests
13
+
14
+
Here we'll cover details around the inbound HTTP request received by an application (or a specific component) when running on Fermyon Wasm Functions.
15
+
16
+
## Request Headers
17
+
18
+
In addition to any headers passed by the client making the request to an application, there are several Spin-related headers included in the request passed to your component.
19
+
20
+
> Each of the headers below link to upstream Spin documentation, where more details and examples can be seen.
21
+
22
+
-[`spin-full-url`](https://spinframework.dev/v3/http-trigger#additional-request-information-spin-full-url): The full URL of the request. This includes full host and scheme information.
23
+
-[`spin-path-info`](https://spinframework.dev/v3/http-trigger#additional-request-information-spin-path-info): The request path relative to the component route
24
+
-[`spin-path-match-n`](https://spinframework.dev/v3/http-trigger#additional-request-information-spin-path-match-n): (Conditionally included): Where n is the pattern for a single-segment wildcard value (e.g. spin-path-match-userid will access the value in a URL containing a route that includes :userid)
25
+
-[`spin-matched-route`](https://spinframework.dev/v3/http-trigger#additional-request-information-spin-matched-route): The part of the trigger route that was matched by the route (including the wildcard indicator if present)
26
+
-[`spin-raw-component-route`](https://spinframework.dev/v3/http-trigger#additional-request-information-spin-raw-component-route): The component route pattern matched, including the wildcard indicator if present
27
+
28
+
Other headers of interest that can be utilized by the triggered component are seen below:
29
+
30
+
-`true-client-ip`: The IP of the client sending the request (e.g. "151.49.93.60")
0 commit comments