-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow plugins to use WKS header strings #9643
Conversation
3f5babe
to
1830f5b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty straightforward.
I think I missed some discussion about this, but just to make sure I understand this PR. Are we adding TSMimeHdrStringToWKS
because TSMimeHdrFieldFind
is significantly more performant with a wks?
@@ -65,6 +65,9 @@ preferred. | |||
value, and populated :arg:`value_len_ptr` with the length of the | |||
value in bytes. The returned header value is not NUL-terminated. | |||
|
|||
In addition to all the predefined constants for Well-Kown header strings, you can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kown -> Known
If we step back a bit, why can't What does the lookup return if the string isn't a WKS? Otherwise it seems reasonable. |
Yes, significantly faster (no strncmp's). |
@SolidWallOfCode Not sure I understand. Yes, will update the docs with the nullptr return value. |
Updated the docs, will email the mailing list now with the API proposal. |
[approve ci centos] |
@bneradt I fixed the typo, can you review again please? |
* asf/master: (90 commits) doc: fix the internal libraries section formatting (apache#9879) Add max thread count options to CMake build (apache#9883) Add yaml libs reference to HTTP proxy test suite. Closes apache#9882 (apache#9885) Add transparent proxy support to CMake build (apache#9884) Check for symbol IP_TOS in CMake build (apache#9870) RAT license fix: renamed_records.out -> .gold (apache#9876) Add traffic_wccp to CMake build (apache#9867) cleanup cast warning with reinterpret_cast (apache#9866) Fixes Coverity 1513058, introduced with apache#9643 (apache#9860) add some missing libs for clang (apache#9865) Add support for libunwind in CMake build (apache#9862) Add option to build regression tests (apache#9863) Fix crash on config reload with BoringSSL (apache#9840) Check for SO_PEERCRED in CMake build (apache#9855) Check for SO_MARK in CMake build (apache#9854) Clean up UnixNetProcessor entanglements. (apache#9825) Remove unneeded DEBUG conditionals. (apache#9849) Add option to enable fast SDK in CMake build (apache#9853) Add support for POSIX Cap in CMake build (apache#9852) WCCP: remove ts::Buffer (apache#9824) ...
No description provided.