This commit is contained in:
holooooo
2021-05-21 16:56:52 +08:00
parent 9b418271cc
commit b0d6f3bd2f
5 changed files with 75 additions and 45 deletions

View File

@@ -34,18 +34,6 @@ func (r *respCarrier) SetHttpResponse(resp *http.Response) {
r.Resp = resp
}
func (r *respCarrier) SetBytes(bytes []byte) {
r.bytes = bytes
}
func (r *respCarrier) Bytes() []byte {
return r.bytes
}
func (r *respCarrier) String() string {
return string(r.bytes)
}
func TestOption_WithEnableCookie(t *testing.T) {
client, err := NewClient("test", "http://httpbin.org/",
WithEnableCookie(true))