Files
projectdiscovery-httpx/common/httpx/response.go
T
2020-07-23 14:17:19 +02:00

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 ""
}