Skip to content

Commit 1e7fa7e

Browse files
feat(lb): add header host in match route (#1503)
Co-authored-by: Jules Castéran <[email protected]>
1 parent 13d6966 commit 1e7fa7e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

api/lb/v1/lb_sdk.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,13 @@ type RouteMatch struct {
15941594
// Sni: server Name Indication TLS extension (SNI)
15951595
//
15961596
// Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer
1597-
Sni *string `json:"sni"`
1597+
// Precisely one of HostHeader, Sni must be set.
1598+
Sni *string `json:"sni,omitempty"`
1599+
// HostHeader: HTTP host header to match
1600+
//
1601+
// The Host request header specifies the host of the server to which the request is being sent
1602+
// Precisely one of HostHeader, Sni must be set.
1603+
HostHeader *string `json:"host_header,omitempty"`
15981604
}
15991605

16001606
// SetACLsResponse: set acls response

0 commit comments

Comments
 (0)