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 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.
Decorate API responses in JSON format with new fields.
Send request to different origin servers based on the URL path.
Make URLs expire after a configurable period.
Add, remove, and sort querystring parameters.
Change PUT, DELETE, OPTIONS and others to POST, or vice versa, to help integrate incompatible client and server apps.
Read individual cookies, set new cookies in response.
Rewrite headers to keep only keys that you want to allow, similar to `querystring.filter_except` but for headers rather than querystrings.
Build raw JSON strings matching your BigQuery table schema to send log data to BigQuery.
Useful for comparing capabilities with required permissions.
Due to ITP 2.1 restrictions, cookies set in JavaScript may be limited to a 7-day TTL. Set your Google Analytics cookie on the edge to avoid this.
Use a dictionary of URL mappings to serve your redirects at lightning speed.
Divide the world into time bands of custom size and forward time zone data to your origin server.
Format dates and times in a variety of ways.
Match URL prefixes and make use of configurable response status and querystring preservation.
Check the query string if it contains a valid domain.
All code on this page is provided under both the BSD and MIT open source licenses.