cookie.StatelessJar.SetCookies   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nop 2
dl 0
loc 1
rs 10
c 0
b 0
f 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