Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package cookie |
||
2 | |||
3 | import ( |
||
4 | "net/http" |
||
5 | "net/url" |
||
6 | ) |
||
7 | |||
8 | func NewStatelessJar(cookies []*http.Cookie) StatelessJar { |
||
9 | return StatelessJar{cookies: cookies} |
||
10 | } |
||
11 | |||
12 | type StatelessJar struct { |
||
13 | cookies []*http.Cookie |
||
14 | } |
||
15 | |||
16 | func (s StatelessJar) SetCookies(_ *url.URL, _ []*http.Cookie) { |
||
17 | } |
||
18 | |||
19 | func (s StatelessJar) Cookies(_ *url.URL) []*http.Cookie { |
||
20 | return s.cookies |
||
21 | } |
||
22 |