Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2678)

Delta Between Two Patch Sets: src/pkg/net/http/export_test.go

Issue 7532043: code review 7532043: net/http: change user agent string (Closed)
Left Patch Set: Created 11 years ago
Right Patch Set: diff -r 3beef801220b https://code.google.com/p/go/ Created 11 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | src/pkg/net/http/header_test.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2011 The Go Authors. All rights reserved. 1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // Bridge package to expose http internals to tests in the http_test 5 // Bridge package to expose http internals to tests in the http_test
6 // package. 6 // package.
7 7
8 package http 8 package http
9 9
10 import ( 10 import (
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 return len(conns) 48 return len(conns)
49 } 49 }
50 50
51 func NewTestTimeoutHandler(handler Handler, ch <-chan time.Time) Handler { 51 func NewTestTimeoutHandler(handler Handler, ch <-chan time.Time) Handler {
52 f := func() <-chan time.Time { 52 f := func() <-chan time.Time {
53 return ch 53 return ch
54 } 54 }
55 return &timeoutHandler{handler, f, ""} 55 return &timeoutHandler{handler, f, ""}
56 } 56 }
57
58 var DefaultUserAgent = defaultUserAgent
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b