(that interface{})
| 312 | return true |
| 313 | } |
| 314 | func (this *Header) Equal(that interface{}) bool { |
| 315 | if that == nil { |
| 316 | return this == nil |
| 317 | } |
| 318 | |
| 319 | that1, ok := that.(*Header) |
| 320 | if !ok { |
| 321 | that2, ok := that.(Header) |
| 322 | if ok { |
| 323 | that1 = &that2 |
| 324 | } else { |
| 325 | return false |
| 326 | } |
| 327 | } |
| 328 | if that1 == nil { |
| 329 | return this == nil |
| 330 | } else if this == nil { |
| 331 | return false |
| 332 | } |
| 333 | if this.Key != that1.Key { |
| 334 | return false |
| 335 | } |
| 336 | if len(this.Values) != len(that1.Values) { |
| 337 | return false |
| 338 | } |
| 339 | for i := range this.Values { |
| 340 | if this.Values[i] != that1.Values[i] { |
| 341 | return false |
| 342 | } |
| 343 | } |
| 344 | return true |
| 345 | } |
| 346 | func (this *HTTPRequest) GoString() string { |
| 347 | if this == nil { |
| 348 | return "nil" |
no outgoing calls