![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Contains information about a response to a content request. More...
Public Member Functions | |
| ContentResponse (string ContentType, object Decoded, byte[] Encoded) | |
| Contains information about a success response to a content request. More... | |
| ContentResponse (Exception Error) | |
| Contains information about an error response to a content request. More... | |
| void | Dispose () |
| IDisposable.Dispose More... | |
| async Task | DisposeAsync () |
| IDisposableAsync.DisposeAsync More... | |
| void | AssertOk () |
| Asserts response is OK. More... | |
Properties | |
| string | ContentType [get] |
| Internet Content-Type of encoded object. More... | |
| object | Decoded [get] |
| Decoded object. More... | |
| byte[] | Encoded [get] |
| Encoded object. More... | |
| bool | HasError [get] |
| If an error occurred. More... | |
| Exception | Error [get] |
| Error response. More... | |
Contains information about a response to a content request.
Definition at line 10 of file ContentResponse.cs.
| Waher.Content.ContentResponse.ContentResponse | ( | string | ContentType, |
| object | Decoded, | ||
| byte[] | Encoded | ||
| ) |
Contains information about a success response to a content request.
| ContentType | Internet Content-Type of encoded object. |
| Decoded | Decoded object. |
| Encoded | Encoded object. |
Definition at line 21 of file ContentResponse.cs.
| Waher.Content.ContentResponse.ContentResponse | ( | Exception | Error | ) |
Contains information about an error response to a content request.
| Error | Encoded error. |
Definition at line 35 of file ContentResponse.cs.
| void Waher.Content.ContentResponse.AssertOk | ( | ) |
Asserts response is OK.
Definition at line 102 of file ContentResponse.cs.
| void Waher.Content.ContentResponse.Dispose | ( | ) |
IDisposable.Dispose
Implements Waher.Events.IDisposableAsync.
Definition at line 83 of file ContentResponse.cs.
| async Task Waher.Content.ContentResponse.DisposeAsync | ( | ) |
Implements Waher.Events.IDisposableAsync.
Definition at line 91 of file ContentResponse.cs.
|
get |
Internet Content-Type of encoded object.
Definition at line 48 of file ContentResponse.cs.
|
get |
Decoded object.
Definition at line 53 of file ContentResponse.cs.
|
get |
Encoded object.
Definition at line 67 of file ContentResponse.cs.
|
get |
Error response.
Definition at line 77 of file ContentResponse.cs.
|
get |
If an error occurred.
Definition at line 72 of file ContentResponse.cs.