github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/edge/pkg/servicebus/util/http.go (about)

     1  package util
     2  
     3  import (
     4  	"net/http"
     5  )
     6  
     7  // HTTPRequest is used structure used to unmarshal message content from clous
     8  type HTTPRequest struct {
     9  	Header http.Header `json:"header"`
    10  	Body   []byte      `json:"body"`
    11  }
    12  
    13  // HTTPResponse is HTTP request's response structure used to send response to cloud
    14  type HTTPResponse struct {
    15  	Header     http.Header `json:"header"`
    16  	StatusCode int         `json:"status_code"`
    17  	Body       []byte      `json:"body"`
    18  }