> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ReceiveRequest

> A request a vendor sent to the connection's URL.

```csharp
public sealed record ReceiveRequest : IEquatable<ReceiveRequest>
```

**Implements:** `IEquatable<ReceiveRequest>`

## Constructors

```csharp
public ReceiveRequest(string Method, string Url, IReadOnlyDictionary<string, string> Headers, ReadOnlyMemory<byte> Body)
```

A request a vendor sent to the connection's URL.

### Parameters

**Method** `string` *required*

The HTTP method, such as POST.

**Url** `string` *required*

The URL as the vendor addressed it.

**Headers** `IReadOnlyDictionary\<string, string\>` *required*

The request's headers.

**Body** `ReadOnlyMemory\<byte\>` *required*

The body as it arrived.

## Fields

**Deadline** `TimeSpan` *required*

How long the host waits for an answer, below the 3 seconds the strictest vendors allow.

## Properties

**Body** `ReadOnlyMemory\<byte\>` *required*

The body as it arrived.

**Headers** `IReadOnlyDictionary\<string, string\>` *required*

The request's headers.

**Method** `string` *required*

The HTTP method, such as POST.

**Url** `string` *required*

The URL as the vendor addressed it.

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out string Method, out string Url, out IReadOnlyDictionary<string, string> Headers, out ReadOnlyMemory<byte> Body)
```

#### Parameters

**Method** `string` *required*

**Url** `string` *required*

**Headers** `IReadOnlyDictionary\<string, string\>` *required*

**Body** `ReadOnlyMemory\<byte\>` *required*

### Equals()

```csharp
public bool Equals(ReceiveRequest? other)
```

#### Parameters

**other** `ReceiveRequest` *required*

#### Returns

`bool`

```csharp
public override bool Equals(object? obj)
```

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### GetHashCode()

```csharp
public override int GetHashCode()
```

#### Returns

`int`

### Header()

```csharp
public string? Header(string name)
```

Reads a header whatever its case, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the request has none.

#### Parameters

**name** `string` *required*

#### Returns

`string`

### operator !=()

```csharp
public static bool operator !=(ReceiveRequest? left, ReceiveRequest? right)
```

#### Parameters

**left** `ReceiveRequest` *required*

**right** `ReceiveRequest` *required*

#### Returns

`bool`

### operator ==()

```csharp
public static bool operator ==(ReceiveRequest? left, ReceiveRequest? right)
```

#### Parameters

**left** `ReceiveRequest` *required*

**right** `ReceiveRequest` *required*

#### Returns

`bool`

### ToString()

```csharp
public override string ToString()
```

#### Returns

`string`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.