mirror of
https://github.com/vee1e/kubeedge.git
synced 2026-09-01 18:27:38 +00:00
24 lines
638 B
Go
24 lines
638 B
Go
package types
|
|
|
|
import "net/http"
|
|
|
|
// HTTPRequest is used structure used to unmarshal message content from cloud
|
|
type HTTPRequest struct {
|
|
Header http.Header `json:"header"`
|
|
Body []byte `json:"body"`
|
|
Method string `json:"method"`
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
// HTTPResponse is HTTP request's response structure used to send response to cloud
|
|
type HTTPResponse struct {
|
|
Header http.Header `json:"header"`
|
|
StatusCode int `json:"status_code"`
|
|
Body []byte `json:"body"`
|
|
}
|
|
|
|
const (
|
|
HeaderAuthorization = "Authorization"
|
|
HeaderNodeName = "NodeName"
|
|
HeaderExtKeyUsages = "ExtKeyUsages"
|
|
)
|