Skip to content

Commit

Permalink
Fixes for go API
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-osborn committed Mar 14, 2024
1 parent 48d2bcb commit 119d8cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/proposals/client-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ type ClientSettingsPolicySpec struct {
type ClientSettingsPolicyStatus struct {
// Conditions describe the current conditions of the ClientSettingsPolicy
// +optional
Conditions []metav1.Condition
Conditions []metav1.Condition `json:"conditions,omitempty"`
}

type ClientSettingsPolicyConfig struct {
Expand Down Expand Up @@ -128,15 +128,16 @@ type KeepAlive struct {
Disable *DisableType `json:"disable"`
}

// KeepAliveTimeout defines the timeouts related to keep-alive client connections.
type KeepAliveTimeout struct {
// ServerTimeout sets the timeout during which a keep-alive client connection will stay open on the server side.
// The zero value disables keep-alive client connections.
// +optional
ServerTimeout *Duration
ServerTimeout *Duration `json:"serverTimeout,omitempty"`

// HeaderTimeout sets the timeout in the "Keep-Alive: timeout=time" response header field.
// +optional
HeaderTimeout *Duration
HeaderTimeout *Duration `json:"headerTimeout,omitempty"`
}

// DisableType is the type of browsers to disable keep-alive connections on.
Expand Down

0 comments on commit 119d8cc

Please sign in to comment.