Movatterモバイル変換


[0]ホーム

URL:


  1. Home
  2. Solutions
  3. Code examples
  4. JavaScript

Code examples using expressly

These code examples have an implementation in JavaScript usingexpressly. To learn more about using JavaScript withexpressly and ourCompute platform, seeusing JavaScript andexpressly'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.
Create self-destructing URLs for time-limited access
Make URLs expire after a configurable period.
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.
Filter cookies or other structured headers
Rewrite headers to keep only keys that you want to allow, similar to `querystring.filter_except` but for headers rather than querystrings.
Log request data to Google BigQuery
Build raw JSON strings matching your BigQuery table schema to send log data to BigQuery.
Set Google Analytics _ga cookie
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.
Redirect old URLs at the edge
Use a dictionary of URL mappings to serve your redirects at lightning speed.
Add time zone offset to requests
Divide the world into time bands of custom size and forward time zone data to your origin server.
Format time expressions
Format dates and times in a variety of ways.
Perform redirects with wildcard patterns using a dictionary
Match URL prefixes and make use of configurable response status and querystring preservation.

All code on this page is provided underboth the BSD and MIT open source licenses.


[8]ページ先頭

©2009-2025 Movatter.jp