You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a pain to create an *http.Request for use with httptest.Server handlers. http.NewRequest is almost right but is for for outbound requests, not inbound requests. The correct way is http.ReadRequest which requires a bufio.Reader. Let's add a helper func to httptest.
The text was updated successfully, but these errors were encountered:
It's a pain to create an *http.Request for use with httptest.Server handlers. http.NewRequest is almost right but is for for outbound requests, not inbound requests. The correct way is http.ReadRequest which requires a bufio.Reader. Let's add a helper func to httptest.
The text was updated successfully, but these errors were encountered: