aboutsummaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-22 11:17:24 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-22 11:17:24 -0800
commit6800bdd8b9e3fd4488bab56cd9fb12206d0631f6 (patch)
tree2b4134dd1a20815d8eb055d963119658c1b49877 /demo
parente390aeca2d536bf023ee1386b956dca017539446 (diff)
downloadnng-6800bdd8b9e3fd4488bab56cd9fb12206d0631f6.tar.gz
nng-6800bdd8b9e3fd4488bab56cd9fb12206d0631f6.tar.bz2
nng-6800bdd8b9e3fd4488bab56cd9fb12206d0631f6.zip
http handler: avoid method allocation
We limit HTTP method lengths to 32.. there are no currently defined HTTP methods that need more than 19 bytes (including trailing zero.) Generally most servers will not have vast numbers of handlers, so the cost of allocating some storage up front to avoid the dynamic allocation is worth while.
Diffstat (limited to 'demo')
0 files changed, 0 insertions, 0 deletions