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

Issue 5541059: code review 5541059: net/http: export ServeFilesystemFile for serving files ...

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by mcroydon
Modified:
5 years, 1 month ago
Reviewers:
CC:
golang-dev
Visibility:
Public.

Description

net/http: export ServeFilesystemFile for serving files from custom FileSystems. Fixes issue 2039.

Patch Set 1 #

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

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

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -9 lines) Patch
M src/pkg/net/http/fs.go View 1 3 chunks +11 lines, -9 lines 2 comments Download

Messages

Total messages: 15
mcroydon
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 4 months ago (2012-01-14 21:55:41 UTC) #1
adg
http://codereview.appspot.com/5541059/diff/4001/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): http://codereview.appspot.com/5541059/diff/4001/src/pkg/net/http/fs.go#newcode113 src/pkg/net/http/fs.go:113: // ServeFilesystemFile replies to a request with the contents ...
12 years, 4 months ago (2012-01-15 08:51:18 UTC) #2
adg
I was thinking about this today and I think this might be a better approach: ...
12 years, 4 months ago (2012-01-15 22:22:30 UTC) #3
mcroydon
On 2012/01/15 22:22:30, adg wrote: > I was thinking about this today and I think ...
12 years, 4 months ago (2012-01-16 03:12:41 UTC) #4
rsc
Better name please.
12 years, 4 months ago (2012-01-16 20:18:05 UTC) #5
bradfitz
Last I recall, we couldn't think of a better name, which is why this has ...
12 years, 4 months ago (2012-01-16 21:02:20 UTC) #6
mcroydon
ServeLocalFile perhaps? On 2012/01/16 21:02:20, bradfitz wrote: > Last I recall, we couldn't think of ...
12 years, 4 months ago (2012-01-16 21:27:29 UTC) #7
adg
On 17 January 2012 08:02, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Last I recall, we couldn't ...
12 years, 4 months ago (2012-01-16 22:58:49 UTC) #8
bradfitz
I like that plan. Gofix without type info might be hard, though. On Jan 16, ...
12 years, 4 months ago (2012-01-16 23:00:22 UTC) #9
adg
On 17 January 2012 10:00, Brad Fitzpatrick <bradfitz@golang.org> wrote: > I like that plan. > ...
12 years, 4 months ago (2012-01-16 23:02:43 UTC) #10
rsc
So the function no one will use is called ServeFile and the function everyone already ...
12 years, 4 months ago (2012-01-16 23:10:27 UTC) #11
adg
On 17 January 2012 10:10, Russ Cox <rsc@golang.org> wrote: > So the function no one ...
12 years, 4 months ago (2012-01-16 23:17:49 UTC) #12
adg
Alternately, if we're going to rename ServeFile and you hate ServeOSFile, we could go with ...
12 years, 4 months ago (2012-01-16 23:19:19 UTC) #13
rsc
Right now, you can already serve index.html by creating a FileSystem implementation that serves it ...
12 years, 4 months ago (2012-01-17 01:44:32 UTC) #14
rsc
11 years, 11 months ago (2012-06-03 04:39:00 UTC) #15

          
Sign in to reply to this message.

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