mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
28 lines
441 B
Go
28 lines
441 B
Go
package httpx
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
// Response contains the response to a server
|
|
type Response struct {
|
|
StatusCode int
|
|
Headers map[string][]string
|
|
Data []byte
|
|
ContentLength int
|
|
Raw string
|
|
Words int
|
|
Lines int
|
|
TlsData *TlsData
|
|
}
|
|
|
|
// GetHeader value
|
|
func (r *Response) GetHeader(name string) string {
|
|
v, ok := r.Headers[name]
|
|
if ok {
|
|
return strings.Join(v, " ")
|
|
}
|
|
|
|
return ""
|
|
}
|