Documentation
¶
Index ¶
Constants ¶
View Source
const ( BANNER = "" /* 720-byte string literal not displayed */ VERSION = "0.4.19" REPOSITORY_LINK = "https://github.com/algrvvv/http" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type InvalidFlagOrOption ¶
type InvalidFlagOrOption struct {
// contains filtered or unexported fields
}
func (InvalidFlagOrOption) Error ¶
func (e InvalidFlagOrOption) Error() string
type MissingFlagOrOption ¶
type MissingFlagOrOption struct {
// contains filtered or unexported fields
}
func (MissingFlagOrOption) Error ¶
func (e MissingFlagOrOption) Error() string
type Request ¶
type Request struct {
Method string // метод запроса
URL string // линк для запроса
Body []byte // тело запроса
Headers string // заголовки
UserAgent string // юзер агент
Cookies string // куки
Proxy string // TODO прокси
Timeout time.Duration // время выделенное на запрос
Redirect bool // Следовать ли за редиректами
}
func ParseAndGetRequest ¶
func (Request) MakeRequest ¶
type Response ¶
type Response struct {
Protocol string // протокол
Code int // код ответа
Status string // статус ответа
FinalLink string // итоговая ссылка, на которой оставновился запрос
RedirectLink string // ссылка переадресации, если есть
Header http.Header // заголовки
Body []byte // тело ответа
TimeLoad time.Duration // время ответа
}
func (*Response) FormatOutput ¶
func (r *Response) FormatOutput()
Click to show internal directories.
Click to hide internal directories.