github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/loadbalancer/lb_http_request_header_condition.go (about) 1 /* 2 * NSX API 3 * 4 * VMware NSX REST API 5 * 6 * API version: 1.0.0 7 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 */ 9 10 package loadbalancer 11 12 // This condition is used to match HTTP request messages by HTTP header fields. HTTP header fields are components of the header section of HTTP request and response messages. They define the operating parameters of an HTTP transaction. For example, Cookie, Authorization, User-Agent, etc. One condition can be used to match one header field, to match multiple header fields, multiple conditions must be specified. The match_type field defines how header_value field is used to match HTTP requests. The header_name field does not support match types. 13 type LbHttpRequestHeaderCondition struct { 14 15 // A flag to indicate whether reverse the match result of this condition 16 Inverse bool `json:"inverse"` 17 18 // Type of load balancer rule condition 19 Type_ string `json:"type"` 20 21 // If true, case is significant when comparing HTTP header value. 22 CaseSensitive bool `json:"case_sensitive"` 23 24 // Name of HTTP header 25 HeaderName string `json:"header_name"` 26 27 // Value of HTTP header 28 HeaderValue string `json:"header_value"` 29 30 // Match type of HTTP header value 31 MatchType string `json:"match_type,omitempty"` 32 }