HTTP trigger reference
Akamai Functions currently supports the http trigger type for Spin applications.
[[trigger.http]]
route = "/..." # the route that the trigger matches
component = "my-application" # the name of the component to handle this route
HTTP Requests
Learn about the inbound HTTP request received by an application or a specific component when running on Akamai Functions.
Request Headers
In addition to any headers passed by the client making the request to an application, several Spin-related headers are included in the request passed to your component.
| Header | Description |
|---|---|
spin-full-url | The full URL of the request. This includes full host and scheme information. |
spin-path-info | The request path relative to the component route. |
spin-path-match-n | (Conditionally included) Where n is the pattern for a single-segment wildcard value. For example, spin-path-match-userid will access the value in a URL containing a route that includes userid. |
spin-matched-route | The part of the trigger route that was matched by the route, including the wildcard indicator if present. |
spin-raw-component-route | The component route pattern matched, including the wildcard indicator if present. |
The triggered component can also use the true-client-ip header. It returns the IP of the client sending the request. For example, 151.49.93.60
Updated 27 days ago
