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

Issue 1681049: code review 1681049: mime/multipart and HTTP multipart/form-data support (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by brad_danga_com
Modified:
13 years, 9 months ago
Reviewers:
CC:
rsc, adg, dsymonds, agl1, golang-dev
Visibility:
Public.

Description

mime/multipart and HTTP multipart/form-data support Somewhat of a work-in-progress (in that MIME is a large spec), but this is functional and enough for discussion and/or code review. In addition to the unit tests, I've tested with curl and Chrome with a variety of test files, making sure the digests of files are unaltered when read via a multipart Part.

Patch Set 1 #

Total comments: 1

Patch Set 2 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Patch Set 3 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Patch Set 4 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Patch Set 5 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Patch Set 6 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Patch Set 7 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Total comments: 36

Patch Set 8 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Patch Set 9 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Patch Set 10 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Total comments: 21

Patch Set 11 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Patch Set 12 : code review 1681049: mime/multipart and HTTP multipart/form-data support #

Unified diffs Side-by-side diffs Delta from patch set Stats (+820 lines, -8 lines) Patch
M src/pkg/Makefile View 8 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/http/request.go View 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -0 lines 0 comments Download
M src/pkg/http/request_test.go View 1 chunk +18 lines, -0 lines 0 comments Download
M src/pkg/mime/Makefile View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A src/pkg/mime/grammar.go View 7 8 9 10 11 1 chunk +36 lines, -0 lines 0 comments Download
A src/pkg/mime/mediatype.go View 9 10 1 chunk +120 lines, -0 lines 0 comments Download
A src/pkg/mime/mediatype_test.go View 1 chunk +117 lines, -0 lines 0 comments Download
A src/pkg/mime/multipart/Makefile View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
A src/pkg/mime/multipart/multipart.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +280 lines, -0 lines 0 comments Download
A src/pkg/mime/multipart/multipart_test.go View 1 2 3 4 5 6 7 8 1 chunk +204 lines, -0 lines 0 comments Download
M src/pkg/mime/type.go View 9 10 2 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 28
brad_danga_com
Maybe my brain is too warped into only understanding git, but I can't figure out ...
13 years, 10 months ago (2010-07-01 04:45:39 UTC) #1
brad_danga_com
Please take a (first) look.... Sorry, every time I use either Rietveld or Mercurial I ...
13 years, 10 months ago (2010-07-01 04:48:13 UTC) #2
dsymonds
Just one quick thought. Let's see what Russ/Andrew have to say. http://codereview.appspot.com/1681049/diff/1/4 File src/pkg/mime/contentdisposition/contentdisposition.go (right): ...
13 years, 10 months ago (2010-07-01 05:11:10 UTC) #3
brad_danga_com
On 2010/07/01 05:11:10, dsymonds1 wrote: > src/pkg/mime/contentdisposition/contentdisposition.go:5: package > contentdisposition > This doesn't feel like ...
13 years, 10 months ago (2010-07-02 04:25:55 UTC) #4
rsc
I'd probably put contentdisposition stuff in mime under the assumption that it will have other ...
13 years, 10 months ago (2010-07-03 00:12:16 UTC) #5
brad_danga_com
Hello rsc, adg, dsymonds1 (cc: golang-dev@googlegroups.com), I'd like you to review this change.
13 years, 9 months ago (2010-07-07 02:46:13 UTC) #6
brad_danga_com
Hello rsc, adg, dsymonds1 (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2010-07-07 02:46:30 UTC) #7
brad_danga_com
Hello rsc, adg, dsymonds1 (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2010-07-07 04:29:27 UTC) #8
dangabrad
Sorry for spam. Fixed a bug found in testing and added more unit tests. On ...
13 years, 9 months ago (2010-07-07 04:33:47 UTC) #9
brad_danga_com
Hello rsc, adg, dsymonds1 (cc: golang-dev@googlegroups.com), I'd like you to review this change.
13 years, 9 months ago (2010-07-07 14:13:00 UTC) #10
brad_danga_com
Hello rsc, adg, dsymonds1 (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2010-07-07 14:14:46 UTC) #11
dangabrad
Now with missing file grammar.go added to the CL. On Wed, Jul 7, 2010 at ...
13 years, 9 months ago (2010-07-07 14:15:18 UTC) #12
agl1
http://codereview.appspot.com/1681049/diff/30001/20002 File src/pkg/http/request.go (right): http://codereview.appspot.com/1681049/diff/30001/20002#newcode19 src/pkg/http/request.go:19: "mime/multipart" Imports are typically in alphabetical order. http://codereview.appspot.com/1681049/diff/30001/20002#newcode149 src/pkg/http/request.go:149: ...
13 years, 9 months ago (2010-07-07 14:51:38 UTC) #13
brad_danga_com
Hello rsc, adg, dsymonds1, agl1 (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2010-07-07 15:37:13 UTC) #14
dangabrad
Will address agl's comments in next CL. Most recent update was only cleaning up Makefiles ...
13 years, 9 months ago (2010-07-07 15:40:01 UTC) #15
brad_danga_com
Hello rsc, adg, dsymonds1, agl1 (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2010-07-08 02:59:19 UTC) #16
brad_danga_com
All of agl's comments addressed. PTAL... http://codereview.appspot.com/1681049/diff/30001/20002 File src/pkg/http/request.go (right): http://codereview.appspot.com/1681049/diff/30001/20002#newcode19 src/pkg/http/request.go:19: "mime/multipart" On 2010/07/07 ...
13 years, 9 months ago (2010-07-08 02:59:35 UTC) #17
agl1
LGTM
13 years, 9 months ago (2010-07-08 14:01:47 UTC) #18
brad_danga_com
Hello rsc, adg, dsymonds1, agl1 (cc: golang-dev@googlegroups.com), I'd like you to review this change.
13 years, 9 months ago (2010-07-08 16:20:23 UTC) #19
brad_danga_com
Patch set 10 only updates the package docs for godoc: http://codereview.appspot.com/1681049/diff2/42001:48001/49009 No code changes.
13 years, 9 months ago (2010-07-08 16:22:47 UTC) #20
rsc1
looks pretty good; thanks for tackling this. a bunch of comment style nits below. the ...
13 years, 9 months ago (2010-07-12 19:50:10 UTC) #21
brad_danga_com
On 2010/07/12 19:50:10, rsc1 wrote: > looks pretty good; thanks for tackling this. > a ...
13 years, 9 months ago (2010-07-13 01:04:30 UTC) #22
brad_danga_com
Hello rsc, adg, dsymonds1, agl1 (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2010-07-13 15:54:23 UTC) #23
rsc
LGTM thanks
13 years, 9 months ago (2010-07-14 16:14:25 UTC) #24
rsc
not sure how this slipped past the codereview extension on your side, but grammar.go is ...
13 years, 9 months ago (2010-07-14 16:36:33 UTC) #25
brad_danga_com
Hello rsc, adg, dsymonds1, agl1 (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2010-07-14 19:22:33 UTC) #26
dangabrad
Oh, hg mail did show the warning about gofmt on that file it turns out, ...
13 years, 9 months ago (2010-07-14 19:28:17 UTC) #27
rsc
13 years, 9 months ago (2010-07-15 00:26:17 UTC) #28
*** Submitted as http://code.google.com/p/go/source/detail?r=4ab63d961945 ***

mime/multipart and HTTP multipart/form-data support

Somewhat of a work-in-progress (in that MIME is a large spec), but this is
functional and enough for discussion and/or code review.

In addition to the unit tests, I've tested with curl and Chrome with
a variety of test files, making sure the digests of files are unaltered
when read via a multipart Part.

R=rsc, adg, dsymonds1, agl1
CC=golang-dev
http://codereview.appspot.com/1681049

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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