Home | History | Annotate | Download | only in http

Lines Matching refs:if

46 		if len(parts) == 1 && parts[0] == "" {
51 if j < 0 {
55 if !isCookieNameValid(name) {
59 if !success {
69 if len(parts[i]) == 0 {
74 if j := strings.Index(attr, "="); j >= 0 {
79 if !success {
95 if err != nil || secs != 0 && val[0] == '0' {
98 if secs <= 0 {
107 if err != nil {
109 if err != nil {
131 if v := cookie.String(); v != "" {
137 // header (if only Name and Value are set) or a Set-Cookie response
138 // header (if other fields are set).
139 // If c is nil or c.Name is invalid, the empty string is returned.
141 if c == nil || !isCookieNameValid(c.Name) {
146 if len(c.Path) > 0 {
149 if len(c.Domain) > 0 {
150 if validCookieDomain(c.Domain) {
156 if d[0] == '.' {
165 if c.Expires.Unix() > 0 {
168 if c.MaxAge > 0 {
170 } else if c.MaxAge < 0 {
173 if c.HttpOnly {
176 if c.Secure {
185 // if filter isn't empty, only cookies of that name are returned
189 if !ok {
195 if len(parts) == 1 && parts[0] == "" {
202 if len(parts[i]) == 0 {
206 if j := strings.Index(name, "="); j >= 0 {
209 if !isCookieNameValid(name) {
212 if filter != "" && filter != name {
216 if !success {
228 if isCookieDomainName(v) {
231 if net.ParseIP(v) != nil && !strings.Contains(v, ":") {
241 if len(s) == 0 {
244 if len(s) > 255 {
248 if s[0] == '.' {
269 if last == '.' {
275 if last == '.' || last == '-' {
278 if partlen > 63 || partlen == 0 {
285 if last == '-' || partlen > 63 {
310 if len(v) == 0 {
313 if v[0] == ' ' || v[0] == ',' || v[len(v)-1] == ' ' || v[len(v)-1] == ',' {
336 if valid(v[i]) {
343 if ok {
348 if b := v[i]; valid(b) {
356 // Strip the quotes, if present.
357 if allowDoubleQuote && len(raw) > 1 && raw[0] == '"' && raw[len(raw)-1] == '"' {
361 if !validCookieValueByte(raw[i]) {
369 if raw == "" {