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
HttpMethodstringThe verb, e.g.
POST.UrlstringThe absolute URL.
HeadersIReadOnlyDictionary<string, string>The headers the plugin sets, the content type among them.
BodystringThe body as text; null for none.
Properties
Body
The body as text; null for none.
public string? Body { get; init; }
Property Value
Headers
The headers the plugin sets, the content type among them.
public IReadOnlyDictionary<string, string> Headers { get; init; }
Property Value
HttpMethod
The verb, e.g. POST.
public string HttpMethod { get; init; }
Property Value
Url
The absolute URL.
public string Url { get; init; }
Property Value
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
Equals(BowirePreparedRequest?)
public bool Equals(BowirePreparedRequest? other)
Parameters
otherBowirePreparedRequest
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowirePreparedRequest?, BowirePreparedRequest?)
public static bool operator ==(BowirePreparedRequest? left, BowirePreparedRequest? right)
Parameters
leftBowirePreparedRequestrightBowirePreparedRequest
Returns
operator !=(BowirePreparedRequest?, BowirePreparedRequest?)
public static bool operator !=(BowirePreparedRequest? left, BowirePreparedRequest? right)
Parameters
leftBowirePreparedRequestrightBowirePreparedRequest