()
| 180 | return -1 |
| 181 | } |
| 182 | func (h *Http) RespCookie() string { |
| 183 | defer func() { |
| 184 | if r := recover(); r != nil { |
| 185 | log.Println("Recovered in RespCookie : ", r) |
| 186 | } |
| 187 | }() |
| 188 | if h.HttpResponse == nil || h.HttpResponse.Header == nil { |
| 189 | return "" |
| 190 | } |
| 191 | cookies := h.HttpResponse.Header.Values("set-cookie") |
| 192 | cks := strings.Join(cookies, "; ") |
| 193 | return cks |
| 194 | } |