#include <matchers.h>
Public Types | |
| enum | Type { Type::kExact, Type::kPrefix, Type::kSuffix, Type::kSafeRegex, Type::kContains, Type::kRange, Type::kPresent } |
Public Member Functions | |
| HeaderMatcher ()=default | |
| HeaderMatcher (const HeaderMatcher &other) | |
| HeaderMatcher (HeaderMatcher &&other) noexcept | |
| bool | Match (const absl::optional< absl::string_view > &value) const |
| const std::string & | name () const |
| HeaderMatcher & | operator= (const HeaderMatcher &other) |
| HeaderMatcher & | operator= (HeaderMatcher &&other) noexcept |
| bool | operator== (const HeaderMatcher &other) const |
| RE2 * | regex_matcher () const |
| const std::string & | string_matcher () const |
| std::string | ToString () const |
| Type | type () const |
Static Public Member Functions | |
| static absl::StatusOr< HeaderMatcher > | Create (absl::string_view name, Type type, absl::string_view matcher, int64_t range_start=0, int64_t range_end=0, bool present_match=false, bool invert_match=false) |
Private Member Functions | |
| HeaderMatcher (absl::string_view name, bool present_match, bool invert_match) | |
| HeaderMatcher (absl::string_view name, int64_t range_start, int64_t range_end, bool invert_match) | |
| HeaderMatcher (absl::string_view name, Type type, StringMatcher matcher, bool invert_match) | |
Private Attributes | |
| bool | invert_match_ = false |
| StringMatcher | matcher_ |
| std::string | name_ |
| bool | present_match_ |
| int64_t | range_end_ |
| int64_t | range_start_ |
| Type | type_ = Type::kExact |
Definition at line 79 of file matchers/matchers.h.
|
strong |
| Enumerator | |
|---|---|
| kExact | |
| kPrefix | |
| kSuffix | |
| kSafeRegex | |
| kContains | |
| kRange | |
| kPresent | |
Definition at line 81 of file matchers/matchers.h.
|
default |
| grpc_core::HeaderMatcher::HeaderMatcher | ( | const HeaderMatcher & | other | ) |
Definition at line 205 of file matchers/matchers.cc.
|
noexcept |
Definition at line 240 of file matchers/matchers.cc.
|
private |
Definition at line 183 of file matchers/matchers.cc.
|
private |
Definition at line 190 of file matchers/matchers.cc.
|
private |
Definition at line 198 of file matchers/matchers.cc.
|
static |
Definition at line 157 of file matchers/matchers.cc.
| bool grpc_core::HeaderMatcher::Match | ( | const absl::optional< absl::string_view > & | value | ) | const |
Definition at line 290 of file matchers/matchers.cc.
|
inline |
Definition at line 125 of file matchers/matchers.h.
| HeaderMatcher & grpc_core::HeaderMatcher::operator= | ( | const HeaderMatcher & | other | ) |
Definition at line 222 of file matchers/matchers.cc.
|
noexcept |
Definition at line 257 of file matchers/matchers.cc.
| bool grpc_core::HeaderMatcher::operator== | ( | const HeaderMatcher & | other | ) | const |
Definition at line 275 of file matchers/matchers.cc.
|
inline |
Definition at line 135 of file matchers/matchers.h.
|
inline |
Definition at line 130 of file matchers/matchers.h.
| std::string grpc_core::HeaderMatcher::ToString | ( | ) | const |
Definition at line 308 of file matchers/matchers.cc.
|
inline |
Definition at line 127 of file matchers/matchers.h.
Definition at line 157 of file matchers/matchers.h.
|
private |
Definition at line 153 of file matchers/matchers.h.
|
private |
Definition at line 151 of file matchers/matchers.h.
|
private |
Definition at line 156 of file matchers/matchers.h.
|
private |
Definition at line 155 of file matchers/matchers.h.
|
private |
Definition at line 154 of file matchers/matchers.h.
|
private |
Definition at line 152 of file matchers/matchers.h.