Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HttpxResponseEventArgs.cs
3
5{
10 {
11 private readonly HttpResponse response;
12 private readonly string statusMessage;
13 private readonly double version;
14 private readonly int statusCode;
15 private readonly bool hasData;
16 private readonly bool constantBuffer;
17 private readonly byte[] data;
18
33 double Version, int StatusCode, string StatusMessage, bool HasData, bool ConstantBuffer,
34 byte[] Data)
35 : base(e)
36 {
37 this.response = Response;
38 this.State = State;
39 this.version = Version;
40 this.statusCode = StatusCode;
41 this.statusMessage = StatusMessage;
42 this.hasData = HasData;
43 this.constantBuffer = ConstantBuffer;
44 this.data = Data;
45 }
46
50 public HttpResponse HttpResponse => this.response;
51
55 public double Version => this.version;
56
60 public int StatusCode => this.statusCode;
61
65 public string StatusMessage => this.statusMessage;
66
70 public bool HasData => this.hasData;
71
76 public bool ConstantBuffer => this.constantBuffer;
77
82 public byte[] Data => this.data;
83 }
84}
Represets a response of an HTTP client request.
Definition: HttpResponse.cs:23
Event arguments for responses to IQ queries.
object State
State object passed to the original request.
HttpxResponseEventArgs(IqResultEventArgs e, HttpResponse Response, object State, double Version, int StatusCode, string StatusMessage, bool HasData, bool ConstantBuffer, byte[] Data)
Event arguments for HTTPX responses.
bool ConstantBuffer
If the contents of the buffer remains constant (true), or if the contents in the buffer may change af...
byte[] Data
Any binary data directly available in the response. If HasData=true and Data=null,...