1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # Add a Strict-Transport-Security header to the response.
11 def web_socket_do_extra_handshake(request
):
12 request
.extra_headers
.append(
13 ('Strict-Transport-Security', 'max-age=3600'))
17 def web_socket_transfer_data(request
):
18 # Wait for closing handshake
19 request
.ws_stream
.receive_message()