Namespace org.wasmcloud.interface.httpserver
Services
Operations
Structures
Lists
Maps
HandleRequest(operation)
input: | HttpRequest | |
output: | HttpResponse |
HeaderMap(map)
map data structure for holding http headers
key: | String | |
value: | HeaderValues |
HeaderValues(list)
member: | String |
HttpRequest(structure)
HttpRequest contains data sent to actor about the http request
body: | Blob | Request body as a byte array. May be empty. |
header: | HeaderMap | map of request headers (string key, string value) |
method: | String | HTTP method. One of: GET,POST,PUT,DELETE,HEAD,OPTIONS,CONNECT,PATCH,TRACE |
path: | String | full request path |
queryString: | String | query string. May be an empty string if there were no query parameters. |
HttpResponse(structure)
HttpResponse contains the actor's response to return to the http client
body: | Blob | Body of response as a byte array. May be an empty array. |
header: | HeaderMap | Map of headers (string keys, list of values) |
statusCode: | org.wasmcloud.model#U16 | statusCode is a three-digit number, usually in the range 100-599, A value of 200 indicates success. |
HttpServer(service)
HttpServer is the contract to be implemented by actor
Operations