uses Header
/* {"description" : "API to make a HTTP request."} */
interface HTTPRequest {
/* {"@description" : "Make a HTTP GET request, returning a response structure."} */
HTTPResponse get(char url[], opt Header headers[], bool secure)
/* {"@description" : "Make a HTTP POST request, returning a response structure."} */
HTTPResponse post(char url[], Header headers[], char postData[], opt bool secure)
}
/* {"description" : "This data type represents a HTTP response."} */
data HTTPResponse {
/* {"@description" : "The URL to which this response relates."} */
char url[]
/* {"@description" : "The HTTP response code."} */
char responseCode[]
/* {"@description" : "The HTTP response message (if any)."} */
char responseMessage[]
/* {"@description" : "The HTTP response content (if any)."} */
byte content[]
/* {"@description" : "The HTTP content-type of the response (if any)."} */
char contentType[]
/* {"@description" : "The full set of HTTP response headers."} */
Header headers[]
}To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n net.http.HTTPRequest -m "reason for update" -u yourUsername
Version 2 (this version) by barry
Notes for this version: Updates documentation strings.