Class FetchOptions
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
Controls an HTTP request's method, headers, and body.
public record FetchOptions : IEquatable<FetchOptions>Properties
Body
The request body; its media type becomes the Content-Type unless a header supplies one.
public BinaryData? Body { get; init; }Property Value
Headers
Request headers in sending order. Content headers such as Content-Type apply to the body.
public IReadOnlyList<KeyValuePair<string, string>> Headers { get; init; }Property Value
Method
The request method; defaults to GET.
public HttpMethod Method { get; init; }