1
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
8
addTestCases(httpserverTests, httpserver)
11
var httpserverTests = []testCase{
18
func f(xyz http.ResponseWriter, abc *http.Request, b string) {
19
xyz.SetHeader("foo", "bar")
20
xyz.SetHeader("baz", "")
26
_ = true == xyz.UsingTLS()
28
_ = xyz.RemoteAddr() == "hello"
37
func f(xyz http.ResponseWriter, abc *http.Request, b string) {
38
xyz.Header().Set("foo", "bar")
39
xyz.Header().Del("baz")
40
xyz.(http.Hijacker).Hijack()
41
xyz.(http.Flusher).Flush()
42
go xyz.(http.Hijacker).Hijack()
43
defer xyz.(http.Flusher).Flush()
45
_ = true == (abc.TLS != nil)
47
_ = abc.RemoteAddr == "hello"