diff options
author | Kelsey Hightower <kelsey.hightower@gmail.com> | 2014-08-29 22:19:30 -0700 |
---|---|---|
committer | Kelsey Hightower <kelsey.hightower@gmail.com> | 2014-08-29 22:19:30 -0700 |
commit | 781f1dc12f0ba115624217161f1fc8f6c0a12e01 (patch) | |
tree | 1a20a233b4b25ce1d8998a6f8030d5641323bad4 /doc | |
parent | 8a4391297874c8421e2d489e879e3467d5340941 (diff) | |
download | go-781f1dc12f0ba115624217161f1fc8f6c0a12e01.tar.gz |
net/http: add BasicAuth method to *http.Request
The net/http package supports setting the HTTP Authorization header
using the Basic Authentication Scheme as defined in RFC 2617, but does
not provide support for extracting the username and password from an
authenticated request using the Basic Authentication Scheme.
Add BasicAuth method to *http.Request that returns the username and
password from authenticated requests using the Basic Authentication
Scheme.
Fixes issue 6779.
LGTM=bradfitz
R=golang-codereviews, josharian, bradfitz, alberto.garcia.hierro, blakesgentry
CC=golang-codereviews
https://codereview.appspot.com/76540043
Committer: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions