summaryrefslogtreecommitdiffhomepage
path: root/API-C.md
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-08-28 12:37:01 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-08-28 20:44:23 +0100
commit8dce3b870b923db810d232e408c530f938f75d80 (patch)
tree594605f58b9a6de532dc3a572fe8a31f8d8f216f /API-C.md
parentda5d9dc03b14b4d0f1ce0ce3ff093f387e148706 (diff)
downloadunit-wasm-8dce3b870b923db810d232e408c530f938f75d80.tar.gz
unit-wasm-8dce3b870b923db810d232e408c530f938f75d80.tar.bz2
libunit-wasm: Pass ctx into luw_http_hdr_get_value() as const
Technically the context pointer can be passed in const even though we then un-const it passing it to the luw_foreach_http_hdr() macro. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'API-C.md')
-rw-r--r--API-C.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/API-C.md b/API-C.md
index c0cfc02..aa44149 100644
--- a/API-C.md
+++ b/API-C.md
@@ -711,7 +711,7 @@ luw_http_hdr_iter(&ctx, hdr_iter_func, NULL);
### luw_http_hdr_get_value
```C
-const char *luw_http_hdr_get_value(luw_ctx_t *ctx, const char *hdr);
+const char *luw_http_hdr_get_value(const luw_ctx_t *ctx, const char *hdr);
```
Given a HTTP header _hdr_ this function will look it up in the request and