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 byte[] data;
17
30 double Version, int StatusCode, string StatusMessage, bool HasData, byte[] Data)
31 : base(e)
32 {
33 this.response = Response;
34 this.State = State;
35 this.version = Version;
36 this.statusCode = StatusCode;
37 this.statusMessage = StatusMessage;
38 this.hasData = HasData;
39 this.data = Data;
40 }
41
45 public HttpResponse HttpResponse => this.response;
46
50 public double Version => this.version;
51
55 public int StatusCode => this.statusCode;
56
60 public string StatusMessage => this.statusMessage;
61
65 public bool HasData => this.hasData;
66
71 public byte[] Data => this.data;
72 }
73}
Represets a response of an HTTP client request.
Definition: HttpResponse.cs:21
Event arguments for responses to IQ queries.
object State
State object passed to the original request.
byte[] Data
Any binary data directly available in the response. If HasData=true and Data=null,...
HttpxResponseEventArgs(IqResultEventArgs e, HttpResponse Response, object State, double Version, int StatusCode, string StatusMessage, bool HasData, byte[] Data)
Event arguments for HTTPX responses.