Class BowirePreparedRequest

Namespace
Kuestenlogik.Bowire
Assembly
Kuestenlogik.Bowire.dll

An HTTP request a plugin would send (#1064).

public sealed record BowirePreparedRequest : IEquatable<BowirePreparedRequest>
Inheritance
BowirePreparedRequest
Implements
Inherited Members

Constructors

BowirePreparedRequest(string, string, IReadOnlyDictionary<string, string>, string?)

An HTTP request a plugin would send (#1064).

public BowirePreparedRequest(string HttpMethod, string Url, IReadOnlyDictionary<string, string> Headers, string? Body)

Parameters

HttpMethod string

The verb, e.g. POST.

Url string

The absolute URL.

Headers IReadOnlyDictionary<string, string>

The headers the plugin sets, the content type among them.

Body string

The body as text; null for none.

Properties

Body

The body as text; null for none.

public string? Body { get; init; }

Property Value

string

Headers

The headers the plugin sets, the content type among them.

public IReadOnlyDictionary<string, string> Headers { get; init; }

Property Value

IReadOnlyDictionary<string, string>

HttpMethod

The verb, e.g. POST.

public string HttpMethod { get; init; }

Property Value

string

Url

The absolute URL.

public string Url { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out IReadOnlyDictionary<string, string>, out string?)

public void Deconstruct(out string HttpMethod, out string Url, out IReadOnlyDictionary<string, string> Headers, out string? Body)

Parameters

HttpMethod string
Url string
Headers IReadOnlyDictionary<string, string>
Body string

Equals(BowirePreparedRequest?)

public bool Equals(BowirePreparedRequest? other)

Parameters

other BowirePreparedRequest

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowirePreparedRequest?, BowirePreparedRequest?)

public static bool operator ==(BowirePreparedRequest? left, BowirePreparedRequest? right)

Parameters

left BowirePreparedRequest
right BowirePreparedRequest

Returns

bool

operator !=(BowirePreparedRequest?, BowirePreparedRequest?)

public static bool operator !=(BowirePreparedRequest? left, BowirePreparedRequest? right)

Parameters

left BowirePreparedRequest
right BowirePreparedRequest

Returns

bool