net/http: document Request.URL

Request.URL had no documentation before and some people were expecting all fields to be populated.

Fixes issue 3805.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7008046

Committer: Russ Cox <rsc@golang.org>
A+C: Thomas Kappler (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/7038049
encoding/json: don't panic marshaling anonymous non-struct field

Add a check for this case and don't try to follow the anonymous
type's non-existent fields.

Fixes issue 4474.

R=rsc
CC=golang-dev
https://codereview.appspot.com/6945065

Committer: Russ Cox <rsc@golang.org>
net/http: make NewRequest pick a ContentLength from a *bytes.Reader too

It already did so for its sibling, *strings.Reader, as well as *bytes.Buffer.

R=edsrzf, dave, adg, kevlar, remyoudompheng, adg, rsc
CC=golang-dev
https://codereview.appspot.com/7031045