Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/template-registry
/ functions
Functions
111 in github.com/cloudflare/template-registry
⨍
Functions
111
◇
Types & classes
6
↓ 3 callers
Function
createHexSignature
(requestBody)
templates/javascript/signed_request.js:17
↓ 2 callers
Function
createFile
(filePath, content)
scripts/tomlToJS.js:15
↓ 2 callers
Function
gatherResponse
* gatherResponse awaits and returns a response body as a string. * Use await gatherResponse(..) in an async function to get the response body * @par
templates/typescript/aggregate_requests.ts:22
↓ 2 callers
Function
gatherResponse
* gatherResponse awaits and returns a response body as a string. * Use await gatherResponse(..) in an async function to get the response body * @par
templates/javascript/aggregate_requests.js:22
↓ 2 callers
Function
getIDFromKey
(key: string)
workers-site/index.ts:120
↓ 2 callers
Function
getUnauthorizedResponse
* Helper function to generate Response object * @param {string} message * @returns {Response}
templates/typescript/auth_basic_http.ts:35
↓ 2 callers
Function
getUnauthorizedResponse
* Helper function to generate Response object * @param {string} message * @returns {Response}
templates/javascript/auth_basic_http.js:35
↓ 2 callers
Function
grabTemplate
* Same as grabTemplates but for individual template * @param key the file path to the toml
workers-site/index.ts:86
↓ 1 callers
Function
checkSignature
(request)
templates/javascript/signed_request.js:22
↓ 1 callers
Function
formJsKey
(id: string)
workers-site/index.ts:104
↓ 1 callers
Function
formTomlKey
(id: string)
workers-site/index.ts:102
↓ 1 callers
Function
gatherResponse
* gatherResponse awaits and returns a response body as a string. * Use await gatherResponse(..) in an async function to get the response body * @par
templates/typescript/fetch_json.ts:19
↓ 1 callers
Function
gatherResponse
* gatherResponse awaits and returns a response body as a string. * Use await gatherResponse(..) in an async function to get the response body * @par
templates/typescript/fetch_html.ts:19
↓ 1 callers
Function
gatherResponse
* gatherResponse awaits and returns a response body as a string. * Use await gatherResponse(..) in an async function to get the response body * @par
templates/typescript/post_json.ts:21
↓ 1 callers
Function
gatherResponse
* gatherResponse awaits and returns a response body as a string. * Use await gatherResponse(..) in an async function to get the response body * @par
templates/javascript/fetch_html.js:19
↓ 1 callers
Function
gatherResponse
* gatherResponse awaits and returns a response body as a string. * Use await gatherResponse(..) in an async function to get the response body * @par
templates/javascript/post_json.js:21
↓ 1 callers
Function
gatherResponse
* gatherResponse awaits and returns a response body as a string. * Use await gatherResponse(..) in an async function to get the response body * @par
templates/javascript/fetch_json.js:19
↓ 1 callers
Function
generateEncryptDecrypt
(algorithm: any, msg: string)
templates/typescript/webcrypto.ts:44
↓ 1 callers
Function
generateEncryptDecrypt
(algorithm, msg)
templates/javascript/webcrypto.js:34
↓ 1 callers
Function
generateSignandVerify
(algorithm: any)
templates/typescript/webcrypto.ts:25
↓ 1 callers
Function
generateSignandVerify
(algorithm)
templates/javascript/webcrypto.js:25
↓ 1 callers
Function
getCookie
* Grabs the cookie with name from the request headers * @param {Request} request incoming Request * @param {string} name of the cookie to grab
templates/typescript/cookie_extract.ts:18
↓ 1 callers
Function
getCookie
* Grabs the cookie with name from the request headers * @param {Request} request incoming Request * @param {string} name of the cookie to grab
templates/javascript/cookie_extract.js:18
↓ 1 callers
Function
getIDFromPath
(path: string)
workers-site/index.ts:110
↓ 1 callers
Function
grabTemplates
* Looks for all the keys in __STATIC_CONTENT_MANIFEST * and then locates and serves the TOML files * from __STATIC_CONTENT
workers-site/index.ts:64
↓ 1 callers
Function
handleEvent
(event: FetchEvent)
workers-site/index.ts:33
↓ 1 callers
Function
handleOptions
(request: Request)
templates/typescript/cors_header_proxy.ts:21
↓ 1 callers
Function
handleOptions
(request)
templates/javascript/cors_header_proxy.js:21
↓ 1 callers
Function
handlePostRequest
(event: FetchEvent)
templates/typescript/cache_api.ts:24
↓ 1 callers
Function
handlePostRequest
(event)
templates/javascript/cache_api.js:24
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/bulk_origin_proxies.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/country_code.ts:1
↓ 1 callers
Function
handleRequest
()
templates/typescript/send_raw_json.ts:1
↓ 1 callers
Function
handleRequest
(event: FetchEvent)
templates/typescript/debugging_tips.ts:1
↓ 1 callers
Function
handleRequest
()
templates/typescript/fetch_json.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/modify_res_props.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/conditional_response.ts:2
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/hot_link_protection.ts:1
↓ 1 callers
Function
handleRequest
* Define personal data with regular expressions * Respond with block if credit card data, and strip * emails and phone numbers from the response *
templates/typescript/private_data_loss.ts:7
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/block_on_tls_version.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/cookie_extract.ts:2
↓ 1 callers
Function
handleRequest
()
templates/typescript/send_raw_html.ts:1
↓ 1 callers
Function
handleRequest
()
templates/typescript/fetch_html.ts:1
↓ 1 callers
Function
handleRequest
(req: Request)
templates/typescript/rewrite_links_html.ts:4
↓ 1 callers
Function
handleRequest
()
templates/typescript/webcrypto.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/http2_server_push.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/alter_headers.ts:1
↓ 1 callers
Function
handleRequest
()
templates/typescript/post_json.ts:1
↓ 1 callers
Function
handleRequest
()
templates/typescript/aggregate_requests.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/auth_basic_http.ts:1
↓ 1 callers
Function
handleRequest
()
templates/typescript/redirect.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/bulk_redirects.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/ab_testing.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/cors_header_proxy.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/modify_req_props.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/cache_ttl.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/auth_with_headers.ts:1
↓ 1 callers
Function
handleRequest
(event: FetchEvent)
templates/typescript/cache_api.ts:1
↓ 1 callers
Function
handleRequest
(request: Request)
templates/typescript/post_data.ts:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/cache_ttl.js:1
↓ 1 callers
Function
handleRequest
()
templates/javascript/send_raw_json.js:1
↓ 1 callers
Function
handleRequest
()
templates/javascript/fetch_html.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/country_code.js:1
↓ 1 callers
Function
handleRequest
()
templates/javascript/redirect.js:1
↓ 1 callers
Function
handleRequest
()
templates/javascript/webcrypto.js:2
↓ 1 callers
Function
handleRequest
()
templates/javascript/post_json.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/http2_server_push.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/post_data.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/alter_headers.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/conditional_response.js:2
↓ 1 callers
Function
handleRequest
(req)
templates/javascript/rewrite_links_html.js:3
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/ab_testing.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/block_on_tls_version.js:1
↓ 1 callers
Function
handleRequest
()
templates/javascript/send_raw_html.js:1
↓ 1 callers
Function
handleRequest
()
templates/javascript/aggregate_requests.js:1
↓ 1 callers
Function
handleRequest
* Define personal data with regular expressions * Respond with block if credit card data, and strip * emails and phone numbers from the response *
templates/javascript/private_data_loss.js:7
↓ 1 callers
Function
handleRequest
()
templates/javascript/fetch_json.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/bulk_redirects.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/signed_request.js:4
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/auth_basic_http.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/modify_res_props.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/cors_header_proxy.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/hot_link_protection.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/cookie_extract.js:2
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/modify_req_props.js:1
↓ 1 callers
Function
handleRequest
(event)
templates/javascript/cache_api.js:1
↓ 1 callers
Function
handleRequest
(event)
templates/javascript/debugging_tips.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/bulk_origin_proxies.js:1
↓ 1 callers
Function
handleRequest
(request)
templates/javascript/auth_with_headers.js:1
↓ 1 callers
Function
parseCredentials
* Break down base64 encoded authorization string into plain-text username and password * @param {string} authorization * @returns {string[]}
templates/typescript/auth_basic_http.ts:24
↓ 1 callers
Function
parseCredentials
* Break down base64 encoded authorization string into plain-text username and password * @param {string} authorization * @returns {string[]}
templates/javascript/auth_basic_http.js:24
↓ 1 callers
Function
postDataBreach
(request: Request)
templates/typescript/private_data_loss.ts:47
↓ 1 callers
Function
postDataBreach
(request)
templates/javascript/private_data_loss.js:45
↓ 1 callers
Function
postLog
(data: string)
templates/typescript/debugging_tips.ts:33
↓ 1 callers
Function
postLog
(data)
templates/javascript/debugging_tips.js:33
↓ 1 callers
Function
rawHtmlResponse
(html: string)
templates/typescript/cors_header_proxy.ts:87
↓ 1 callers
Function
rawHtmlResponse
* rawHtmlResponse delivers a response with HTML inputted directly * into the worker script * @param {string} html
templates/typescript/post_data.ts:23
↓ 1 callers
Function
rawHtmlResponse
* rawHtmlResponse delivers a response with HTML inputted directly * into the worker script * @param {string} html
templates/javascript/post_data.js:23
↓ 1 callers
Function
rawHtmlResponse
(html)
templates/javascript/cors_header_proxy.js:87
↓ 1 callers
Function
readRequestBody
* readRequestBody reads in the incoming request body * Use await readRequestBody(..) in an async function to get the string * @param {Request} reque
templates/typescript/post_data.ts:36
next →
1–100 of 111, ranked by callers