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

Issue 5643067: code review 5643067: net/http: add ServeContent (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by bradfitz
Modified:
12 years, 3 months ago
Reviewers:
CC:
r, rsc, niemeyer, r2, rog, golang-dev
Visibility:
Public.

Description

net/http: add ServeContent Fixes issue 2039

Patch Set 1 #

Patch Set 2 : diff -r dbaa862f08db https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r dbaa862f08db https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 4 : diff -r dbaa862f08db https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 5 : diff -r a90ca1755aa5 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 6 : diff -r 155ced87a593 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -94 lines) Patch
M src/pkg/net/http/fs.go View 1 2 3 4 5 5 chunks +121 lines, -87 lines 0 comments Download
M src/pkg/net/http/fs_test.go View 1 2 3 5 chunks +57 lines, -7 lines 0 comments Download

Messages

Total messages: 16
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 3 months ago (2012-02-09 03:12:39 UTC) #1
r
new API needs to be in go1.html
12 years, 3 months ago (2012-02-09 03:13:16 UTC) #2
rsc1
http://codereview.appspot.com/5643067/diff/4003/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): http://codereview.appspot.com/5643067/diff/4003/src/pkg/net/http/fs.go#newcode111 src/pkg/net/http/fs.go:111: // If the content also has a Stat method, ...
12 years, 3 months ago (2012-02-09 03:24:45 UTC) #3
bradfitz
On Wed, Feb 8, 2012 at 7:24 PM, <rsc@google.com> wrote: > > http://codereview.appspot.com/**5643067/diff/4003/src/pkg/net/**http/fs.go<http://codereview.appspot.com/5643067/diff/4003/src/pkg/net/http/fs.go> > File ...
12 years, 3 months ago (2012-02-09 03:30:52 UTC) #4
rsc
On Wed, Feb 8, 2012 at 22:30, Brad Fitzpatrick <bradfitz@golang.org> wrote: > This is just ...
12 years, 3 months ago (2012-02-09 03:37:09 UTC) #5
bradfitz
On Wed, Feb 8, 2012 at 7:37 PM, Russ Cox <rsc@golang.org> wrote: > On Wed, ...
12 years, 3 months ago (2012-02-09 03:37:56 UTC) #6
bradfitz
Hello r@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 3 months ago (2012-02-09 03:58:29 UTC) #7
niemeyer
Very cool indeed, thanks Brad. Just a few suggestions. http://codereview.appspot.com/5643067/diff/4004/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): http://codereview.appspot.com/5643067/diff/4004/src/pkg/net/http/fs.go#newcode98 src/pkg/net/http/fs.go:98: ...
12 years, 3 months ago (2012-02-09 04:07:11 UTC) #8
r
still needs release notes.
12 years, 3 months ago (2012-02-09 04:13:13 UTC) #9
r2
all right, maybe not necessary. -rob
12 years, 3 months ago (2012-02-09 04:36:48 UTC) #10
bradfitz
Hello r@golang.org, rsc@golang.org, n13m3y3r@gmail.com, r@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 3 months ago (2012-02-09 04:48:10 UTC) #11
bradfitz
PTAL http://codereview.appspot.com/5643067/diff/4004/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): http://codereview.appspot.com/5643067/diff/4004/src/pkg/net/http/fs.go#newcode98 src/pkg/net/http/fs.go:98: content.Seek(0, os.SEEK_SET) On 2012/02/09 04:07:12, niemeyer wrote: > ...
12 years, 3 months ago (2012-02-09 04:50:18 UTC) #12
rog
it would be nice if we had a convenient way of serving up a bunch ...
12 years, 3 months ago (2012-02-09 09:39:40 UTC) #13
bradfitz
Anything else, Russ? On Thu, Feb 9, 2012 at 3:50 PM, <bradfitz@golang.org> wrote: > PTAL ...
12 years, 3 months ago (2012-02-09 22:24:41 UTC) #14
rsc
LGTM http://codereview.appspot.com/5643067/diff/1004/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): http://codereview.appspot.com/5643067/diff/1004/src/pkg/net/http/fs.go#newcode82 src/pkg/net/http/fs.go:82: // The main benefits of ServeContent over io.Copy ...
12 years, 3 months ago (2012-02-09 22:34:04 UTC) #15
bradfitz
12 years, 3 months ago (2012-02-09 23:02:13 UTC) #16
*** Submitted as http://code.google.com/p/go/source/detail?r=a6adaf7fc909 ***

net/http: add ServeContent

Fixes issue 2039

R=r, rsc, n13m3y3r, r, rogpeppe
CC=golang-dev
http://codereview.appspot.com/5643067
Sign in to reply to this message.

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