31 lines
369 B
Go
31 lines
369 B
Go
package http
|
|
|
|
import "git.3crabs.ru/VLADIMIR/net/url"
|
|
|
|
type Request struct {
|
|
ConnectPath string // ip
|
|
|
|
Method string
|
|
URL *url.URL
|
|
Protocol string
|
|
|
|
Headers []Header
|
|
|
|
Body []byte
|
|
}
|
|
|
|
type Response struct {
|
|
Protocol string
|
|
StatusCode string
|
|
StatusMessage string
|
|
|
|
Headers []Header
|
|
|
|
Body []byte
|
|
}
|
|
|
|
type Header struct {
|
|
Name string
|
|
Value string
|
|
}
|