NodeWorld

WebRequestData

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public sealed class WebRequestData

Namespace Flux.

A request for the host: method, absolute address, headers (one line each, values joined), body.

Fields

Method

csharp
public string Method

The HTTP method ("GET" by default).

Url

csharp
public string Url

The absolute address.

Headers

csharp
public readonly List<KeyValuePair<string, string>> Headers

The headers: one entry per header, its values joined.

Body

csharp
public byte[]? Body

The body; null: none.

FollowRedirects

csharp
public bool FollowRedirects

Follow the redirects (true by default).

MaxRedirects

csharp
public int MaxRedirects

The most redirects followed (50 by default).

DecompressGzip

csharp
public bool DecompressGzip

Decode a gzip answer.

DecompressDeflate

csharp
public bool DecompressDeflate

Decode a deflate answer.

MaxResponseBytes

csharp
public long MaxResponseBytes

The largest answer body taken, in bytes (HttpClient.MaxResponseContentBufferSize).