diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-22 11:17:24 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-22 11:17:24 -0800 |
| commit | 6800bdd8b9e3fd4488bab56cd9fb12206d0631f6 (patch) | |
| tree | 2b4134dd1a20815d8eb055d963119658c1b49877 /docs | |
| parent | e390aeca2d536bf023ee1386b956dca017539446 (diff) | |
| download | nng-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 'docs')
0 files changed, 0 insertions, 0 deletions
