Code examples using expressly
These code examples have an implementation in JavaScript using expressly
. To learn more about using JavaScript with expressly
and our Compute@Edge platform, see using JavaScript and expressly
's documentation.
NOTE: Some of the code examples here are also available in other languages. To help with migrations or learning, where a code example has multiple implementations, we show all implementations together.
Add a new field to a JSON response
Decorate API responses in JSON format with new fields.
Use microservices to divide up a domain
Send request to different origin servers based on the URL path.
Filter query string parameters
Add, remove, and sort querystring parameters.
Change request method
Change PUT, DELETE, OPTIONS and others to POST, or vice versa, to help integrate incompatible client and server apps.
Add or remove cookies
Read individual cookies, set new cookies in response.
Redirect old URLs at the edge
Use a dictionary of URL mappings to serve your redirects at lightning speed.
All code on this page is provided under both the BSD and MIT open source licenses.