Merge branch 'master' of https://git.3crabs.ru/VLADIMIR/net
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user