An error occurred fetching the project authors.
  1. 08 Sep, 2014 1 commit
  2. 12 Mar, 2014 1 commit
  3. 06 Mar, 2014 1 commit
  4. 08 Feb, 2012 1 commit
  5. 17 Jan, 2012 1 commit
    • Gustavo Niemeyer's avatar
      net/url: cleaned up URL interface (v2) · dafd9f0b
      Gustavo Niemeyer authored
      Duplicated fields from URL were dropped so that its behavior
      is simple and expected when being stringified and when being
      operated by packages like http. Most of the preserved fields
      are in unencoded form, except for RawQuery which continues to
      exist and be more easily handled via url.Query().
      
      The RawUserinfo field was also replaced since it wasn't practical
      to use and had limitations when operating with empty usernames
      and passwords which are allowed by the RFC. In its place the
      Userinfo type was introduced and made accessible through the
      url.User and url.UserPassword functions.
      
      What was previous built as:
      
              url.URL{RawUserinfo: url.EncodeUserinfo("user", ""), ...}
      
      Is now built as:
      
              url.URL{User: url.User("user"), ...}
      
      R=rsc, bradfitz, gustavo
      CC=golang-dev
      https://golang.org/cl/5498076
      dafd9f0b
  6. 08 Nov, 2011 1 commit
  7. 03 Nov, 2011 1 commit
    • Rob Pike's avatar
      net: renamings · de03d502
      Rob Pike authored
      This is Go 1 package renaming CL #3.
      This one merely moves the source; the import strings will be
      changed after the next weekly release.
      This one moves pieces into net.
      
      http -> net/http
      http/cgi -> net/http/cgi
      http/fcgi -> net/http/fcgi
      http/pprof -> net/http/pprof
      http/httptest -> net/http/httptest
      mail -> net/mail
      rpc -> net/rpc
      rpc/jsonrpc -> net/rpc/jsonrpc
      smtp -> net/smtp
      url -> net/url
      
      Also remove rand (now math/rand) from NOTEST - it has a test.
      
      The only edits are in Makefiles and deps.bash.
      
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/5335048
      de03d502
  8. 02 Nov, 2011 1 commit
  9. 26 Oct, 2011 1 commit
  10. 12 Oct, 2011 1 commit
  11. 16 Sep, 2011 1 commit
    • Yasuhiro Matsumoto's avatar
      http/cgi: clean up environment. · 048ec758
      Yasuhiro Matsumoto authored
      clean up duplicate environment for CGI.
      overriding former by latter.
      On windows, When there are duplicated environments like following,
      
      SCRIPT_FILENAME=c:/progra~1/php/php-cgi.exe
      SCRIPT_FILENAME=/foo.php
      
      CreateProcess use first entry.
      
      If make cgi.Handle like following,
      
              cgih = cgi.Handler{
                      Path: "c:/strawberry/perl/bin/perl.exe",
                      Dir:  "c:/path/to/webroot",
                      Root: "c:/path/to/webroot",
                      Args: []string{"foo.php"},
                      Env:  []string{"SCRIPT_FILENAME=foo.php"},
              }
      
      http/cgi should behave "SCRIPT_FILENAME is foo.php".
      But currently, http/cgi is set duplicate environment entries.
      So, browser show binary dump of "php-cgi.exe" that is specified indented
      SCRIPT_FILENAME in first entry.
      This change clean up duplicates, and use latters.
      
      R=golang-dev, bradfitz, bradfitz
      CC=golang-dev
      https://golang.org/cl/5010044
      048ec758
  12. 15 Sep, 2011 1 commit
  13. 06 Sep, 2011 1 commit
  14. 17 Aug, 2011 1 commit
    • Rob Pike's avatar
      url: new package · 1d8f822c
      Rob Pike authored
      This is just moving the URL code from package http into its own package,
      which has been planned for a while.
      Besides clarity, this also breaks a nascent dependency cycle the new template
      package was about to introduce.
      
      Add a gofix module, url, and use it to generate changes outside http and url.
      
      Sadness about the churn, gladness about some of the naming improvements.
      
      R=dsymonds, bradfitz, rsc, gustavo, r
      CC=golang-dev
      https://golang.org/cl/4893043
      1d8f822c
  15. 11 Jul, 2011 1 commit
  16. 30 Jun, 2011 1 commit
  17. 27 Jun, 2011 1 commit
  18. 16 Jun, 2011 1 commit
    • Brad Fitzpatrick's avatar
      http: make Headers be source of truth · 6e9b1a78
      Brad Fitzpatrick authored
      Previously Request and Response had redundant fields for
      Referer, UserAgent, and cookies which caused confusion and
      bugs.  It also didn't allow us to expand the package over
      time, since the way to access fields would be in the Headers
      one day and promoted to a field the next day.  That would be
      hard to gofix, especially with code ranging over Headers.
      
      After a discussion on the mail package's design with a similar
      problem, we've designed to make the Headers be the source of
      truth and add accessors instead.
      
      Request:
      change: Referer -> Referer()
      change: UserAgent -> UserAgent()
      change: Cookie -> Cookies()
      new: Cookie(name) *Cookie
      new: AddCookie(*Cookie)
      
      Response:
      change: Cookie -> Cookies()
      
      Cookie:
      new: String() string
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/4620049
      6e9b1a78
  19. 02 Jun, 2011 1 commit
  20. 01 Jun, 2011 1 commit
    • Brad Fitzpatrick's avatar
      exec: new API, replace Run with Command · f259f6ba
      Brad Fitzpatrick authored
      This removes exec.Run and replaces exec.Cmd with a
      new implementation. The new exec.Cmd represents
      both a currently-running command and also a command
      being prepared. It has a good zero value.
      
      You can Start + Wait on a Cmd, or simply Run it.
      Start (and Run) deal with copying stdout, stdin,
      and stderr between the Cmd's io.Readers and
      io.Writers.
      
      There are convenience methods to capture a command's
      stdout and/or stderr.
      
      R=r, n13m3y3r, rsc, gustavo, alex.brainman, dsymonds, r, adg, duzy.chan, mike.rosset, kevlar
      CC=golang-dev
      https://golang.org/cl/4552052
      f259f6ba
  21. 29 Apr, 2011 1 commit
  22. 28 Apr, 2011 1 commit
  23. 27 Apr, 2011 1 commit
  24. 22 Apr, 2011 2 commits
  25. 13 Apr, 2011 1 commit
  26. 10 Mar, 2011 1 commit
  27. 09 Mar, 2011 1 commit
    • Brad Fitzpatrick's avatar
      http: change ResponseWriter.SetHeader(k,v) to Header() accessor · 2c420ece
      Brad Fitzpatrick authored
      Caller code needs to change:
      
      rw.SetHeader("Content-Type", "text/plain")
      to:
      rw.Header().Set("Content-Type", "text/plain")
      
      This now permits returning multiple headers
      with the same name using Add:
      
      rw.Header().Add("Set-Cookie", "..")
      rw.Header().Add("Set-Cookie", "..")
      
      This patch also fixes serialization of headers, removing newline characters.
      
      Fixes #488
      Fixes #914
      
      R=rsc
      CC=gburd, golang-dev
      https://golang.org/cl/4239076
      2c420ece
  28. 08 Mar, 2011 1 commit
  29. 04 Mar, 2011 1 commit