Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WithHSTS (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/filters/hsts.go

    limitations under the License.
    */
    
    package filters
    
    import (
    	"net/http"
    	"strings"
    )
    
    // WithHSTS is a simple HSTS implementation that wraps an http Handler.
    // If hstsDirectives is empty or nil, no HSTS support is installed.
    func WithHSTS(handler http.Handler, hstsDirectives []string) http.Handler {
    	if len(hstsDirectives) == 0 {
    		return handler
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 12 08:42:53 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/config.go

    		handler = genericfilters.WithProbabilisticGoaway(handler, c.GoawayChance)
    	}
    	handler = genericapifilters.WithCacheControl(handler)
    	handler = genericfilters.WithHSTS(handler, c.HSTSDirectives)
    	if c.ShutdownSendRetryAfter {
    		handler = genericfilters.WithRetryAfter(handler, c.lifecycleSignals.NotAcceptingNewRequest.Signaled())
    	}
    	handler = genericfilters.WithHTTPLogging(handler)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
Back to top