Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion tip change of net/http semantics
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gustavo Niemeyer  
View profile  
 More options Jun 25 2012, 3:29 pm
From: Gustavo Niemeyer <gust...@niemeyer.net>
Date: Mon, 25 Jun 2012 12:29:32 -0700
Local: Mon, Jun 25 2012 3:29 pm
Subject: Re: [golang-dev] tip change of net/http semantics

On Mon, Jun 25, 2012 at 11:59 AM, Brad Fitzpatrick <bradf...@golang.org> wrote:
> This was already discussed during the review.  I flagged this as a change,
> but it was undocumented before and non-Go like, returning (non-nil, non-nil
> error), and I couldn't see how it would be useful.

While that's not typical, conceptually it sounds sane to give back
mid-state if that mid-state is relevant. That's the case of several
functions in the io package, and that seemed like the case of response
in the http package.

> Gustavo, apparently you found the old undocumented/untested behavior useful
> somehow?  How?

As a way to prevent the default redirecting behavior and getting the
actual response from the server. If this is not a good way to do that,
I suggest having one.

gustavo @ http://niemeyer.net


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.