> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor/ks.reactor.kswebresponse.md).

# Class ksWebResponse

Namespace: [KS.Reactor](/reactor/api-reference/ks.reactor.md)\
Assembly: KSCommon.dll

ksIWebRequest response ojbect.

```csharp
public class ksWebResponse
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [ksWebResponse](/reactor/api-reference/ks.reactor/ks.reactor.kswebresponse.md)

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Properties

### AsyncState <a href="#ks_reactor_kswebresponse_asyncstate" id="ks_reactor_kswebresponse_asyncstate"></a>

Asynchronous object passed into the request.

```csharp
public object AsyncState { get; set; }
```

#### Property Value

[object](https://learn.microsoft.com/dotnet/api/system.object)

### Data <a href="#ks_reactor_kswebresponse_data" id="ks_reactor_kswebresponse_data"></a>

Raw stream data.

```csharp
public byte[] Data { get; set; }
```

#### Property Value

[byte](https://learn.microsoft.com/dotnet/api/system.byte)\[]

### Error <a href="#ks_reactor_kswebresponse_error" id="ks_reactor_kswebresponse_error"></a>

Error message.

```csharp
public string Error { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### Headers <a href="#ks_reactor_kswebresponse_headers" id="ks_reactor_kswebresponse_headers"></a>

HTTP response headers.

```csharp
public WebHeaderCollection Headers { get; set; }
```

#### Property Value

[WebHeaderCollection](https://learn.microsoft.com/dotnet/api/system.net.webheadercollection)

### JSON <a href="#ks_reactor_kswebresponse_json" id="ks_reactor_kswebresponse_json"></a>

Response JSON if the response content-type was application/json.

```csharp
public ksJSON JSON { get; }
```

#### Property Value

[ksJSON](/reactor/api-reference/ks.reactor/ks.reactor.ksjson.md)

### ReplyTime <a href="#ks_reactor_kswebresponse_replytime" id="ks_reactor_kswebresponse_replytime"></a>

Amount of time in milliseconds the request took.

```csharp
public int ReplyTime { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### StatusCode <a href="#ks_reactor_kswebresponse_statuscode" id="ks_reactor_kswebresponse_statuscode"></a>

HTTP response status code.

```csharp
public long StatusCode { get; set; }
```

#### Property Value

[long](https://learn.microsoft.com/dotnet/api/system.int64)

### StatusMessage <a href="#ks_reactor_kswebresponse_statusmessage" id="ks_reactor_kswebresponse_statusmessage"></a>

HTTP response status message.

```csharp
public string StatusMessage { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### String <a href="#ks_reactor_kswebresponse_string" id="ks_reactor_kswebresponse_string"></a>

Response string.

```csharp
public string String { get; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)
