FlexiLib/proxy.ini

19 lines
846 B
INI
Raw Normal View History

2023-05-27 21:01:40 +00:00
# This is a simple "path prefix" = dynamic library path mapping
# no reordering will be done, so you must do things most -> least specific
# because all paths start with a '/', we may be able to later add the ability
# for libraries to self-select whether they can handle a request, which opens
# up additional possibilities
# Example of match based on an HTTP header. The key is space-delimited:
# <http header key>: <header match prefix> <path match prefix>
2023-06-16 03:26:49 +00:00
Host: iam / = zig-out/lib/libflexilib-sample-lib.so
/c = zig-out/lib/libflexilib-in-c.so
2023-10-03 20:27:18 +00:00
/universal = zig-out/lib/libuniversal-lambda-example.so
2023-06-16 03:26:49 +00:00
/ = zig-out/lib/libflexilib-sample-lib.so
2023-07-29 23:22:46 +00:00
# JS-based Cloudflare worker: 0.051s +/- 0.002s (50ms)
# WASM-based: 0.060s +/- 0.01s (60ms)
# ms: 0.001s
# locally (nucman) wasmtime adds 3.4ms latency
# with a pre-compiled module, 2.7ms latency