mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
17 lines
335 B
Go
17 lines
335 B
Go
package fasthttp
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TODOTestClientDo(t *testing.T) {
|
|
var req Request
|
|
var resp Response
|
|
|
|
req.Header.Set("HOST", "google.com")
|
|
if err := Do(&req, &resp); err != nil {
|
|
t.Fatalf("unexpected error when doing http request: %s", err)
|
|
}
|
|
t.Fatalf("statusCode=%d, Body=%q", resp.Header.StatusCode, resp.Body)
|
|
}
|