add more carrier

This commit is contained in:
holooooo
2021-05-22 14:58:40 +08:00
parent b0d6f3bd2f
commit 4b1619b105
3 changed files with 94 additions and 37 deletions

View File

@@ -26,12 +26,14 @@ import (
)
type respCarrier struct {
Resp *http.Response
bytes []byte
}
func (r *respCarrier) SetHttpResponse(resp *http.Response) {
r.Resp = resp
func (r *respCarrier) SetBytes(bytes []byte) {
r.bytes = bytes
}
func (r *respCarrier) String() string {
return string(r.bytes)
}
func TestOption_WithEnableCookie(t *testing.T) {