@tsonic/dotnet-types
Version:
TypeScript declarations and metadata for .NET 10.0 assemblies
702 lines (635 loc) • 39.9 kB
TypeScript
// Auto-generated by generatedts on 2025-11-02T09:57:39Z - do not edit by hand.
type int = number & { __brand: "int" };
type uint = number & { __brand: "uint" };
type byte = number & { __brand: "byte" };
type sbyte = number & { __brand: "sbyte" };
type short = number & { __brand: "short" };
type ushort = number & { __brand: "ushort" };
type long = number & { __brand: "long" };
type ulong = number & { __brand: "ulong" };
type float = number & { __brand: "float" };
type double = number & { __brand: "double" };
type decimal = number & { __brand: "decimal" };
declare namespace System.Net.Http {
class ByteArrayContent extends System.Net.Http.HttpContent implements System.IDisposable {
constructor(content: ReadonlyArray<byte>);
constructor(content: ReadonlyArray<byte>, offset: int, count: int);
}
enum ClientCertificateOption {
Manual = 0,
Automatic = 1
}
class DelegatingHandler extends System.Net.Http.HttpMessageHandler implements System.IDisposable {
InnerHandler: System.Net.Http.HttpMessageHandler;
}
class FormUrlEncodedContent extends System.Net.Http.ByteArrayContent implements System.IDisposable {
constructor(nameValueCollection: ReadonlyArray<System.Collections.Generic.KeyValuePair<string, string>>);
}
class HeaderEncodingSelector<TContext> extends System.MulticastDelegate implements System.ICloneable, System.Runtime.Serialization.ISerializable {
constructor(object: any, method: number);
Invoke(headerName: string, context: TContext): System.Text.Encoding;
BeginInvoke(headerName: string, context: TContext, callback: System.AsyncCallback, object: any): System.IAsyncResult;
EndInvoke(result: System.IAsyncResult): System.Text.Encoding;
}
class HttpClient extends System.Net.Http.HttpMessageInvoker implements System.IDisposable {
constructor();
constructor(handler: System.Net.Http.HttpMessageHandler);
constructor(handler: System.Net.Http.HttpMessageHandler, disposeHandler: boolean);
static DefaultProxy: System.Net.IWebProxy;
readonly DefaultRequestHeaders: System.Net.Http.Headers.HttpRequestHeaders;
DefaultRequestVersion: System.Version;
DefaultVersionPolicy: System.Net.Http.HttpVersionPolicy;
BaseAddress: System.Uri;
Timeout: System.TimeSpan;
MaxResponseContentBufferSize: long;
GetStringAsync(requestUri: string): Promise<string>;
GetStringAsync(requestUri: System.Uri): Promise<string>;
GetStringAsync(requestUri: string, cancellationToken: System.Threading.CancellationToken): Promise<string>;
GetStringAsync(requestUri: System.Uri, cancellationToken: System.Threading.CancellationToken): Promise<string>;
GetByteArrayAsync(requestUri: string): Promise<ReadonlyArray<byte>>;
GetByteArrayAsync(requestUri: System.Uri): Promise<ReadonlyArray<byte>>;
GetByteArrayAsync(requestUri: string, cancellationToken: System.Threading.CancellationToken): Promise<ReadonlyArray<byte>>;
GetByteArrayAsync(requestUri: System.Uri, cancellationToken: System.Threading.CancellationToken): Promise<ReadonlyArray<byte>>;
GetStreamAsync(requestUri: string): Promise<System.IO.Stream>;
GetStreamAsync(requestUri: string, cancellationToken: System.Threading.CancellationToken): Promise<System.IO.Stream>;
GetStreamAsync(requestUri: System.Uri): Promise<System.IO.Stream>;
GetStreamAsync(requestUri: System.Uri, cancellationToken: System.Threading.CancellationToken): Promise<System.IO.Stream>;
GetAsync(requestUri: string): Promise<System.Net.Http.HttpResponseMessage>;
GetAsync(requestUri: System.Uri): Promise<System.Net.Http.HttpResponseMessage>;
GetAsync(requestUri: string, completionOption: System.Net.Http.HttpCompletionOption): Promise<System.Net.Http.HttpResponseMessage>;
GetAsync(requestUri: System.Uri, completionOption: System.Net.Http.HttpCompletionOption): Promise<System.Net.Http.HttpResponseMessage>;
GetAsync(requestUri: string, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
GetAsync(requestUri: System.Uri, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
GetAsync(requestUri: string, completionOption: System.Net.Http.HttpCompletionOption, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
GetAsync(requestUri: System.Uri, completionOption: System.Net.Http.HttpCompletionOption, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
PostAsync(requestUri: string, content: System.Net.Http.HttpContent): Promise<System.Net.Http.HttpResponseMessage>;
PostAsync(requestUri: System.Uri, content: System.Net.Http.HttpContent): Promise<System.Net.Http.HttpResponseMessage>;
PostAsync(requestUri: string, content: System.Net.Http.HttpContent, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
PostAsync(requestUri: System.Uri, content: System.Net.Http.HttpContent, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
PutAsync(requestUri: string, content: System.Net.Http.HttpContent): Promise<System.Net.Http.HttpResponseMessage>;
PutAsync(requestUri: System.Uri, content: System.Net.Http.HttpContent): Promise<System.Net.Http.HttpResponseMessage>;
PutAsync(requestUri: string, content: System.Net.Http.HttpContent, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
PutAsync(requestUri: System.Uri, content: System.Net.Http.HttpContent, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
PatchAsync(requestUri: string, content: System.Net.Http.HttpContent): Promise<System.Net.Http.HttpResponseMessage>;
PatchAsync(requestUri: System.Uri, content: System.Net.Http.HttpContent): Promise<System.Net.Http.HttpResponseMessage>;
PatchAsync(requestUri: string, content: System.Net.Http.HttpContent, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
PatchAsync(requestUri: System.Uri, content: System.Net.Http.HttpContent, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
DeleteAsync(requestUri: string): Promise<System.Net.Http.HttpResponseMessage>;
DeleteAsync(requestUri: System.Uri): Promise<System.Net.Http.HttpResponseMessage>;
DeleteAsync(requestUri: string, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
DeleteAsync(requestUri: System.Uri, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
Send(request: System.Net.Http.HttpRequestMessage): System.Net.Http.HttpResponseMessage;
Send(request: System.Net.Http.HttpRequestMessage, completionOption: System.Net.Http.HttpCompletionOption): System.Net.Http.HttpResponseMessage;
Send(request: System.Net.Http.HttpRequestMessage, cancellationToken: System.Threading.CancellationToken): System.Net.Http.HttpResponseMessage;
Send(request: System.Net.Http.HttpRequestMessage, completionOption: System.Net.Http.HttpCompletionOption, cancellationToken: System.Threading.CancellationToken): System.Net.Http.HttpResponseMessage;
SendAsync(request: System.Net.Http.HttpRequestMessage): Promise<System.Net.Http.HttpResponseMessage>;
SendAsync(request: System.Net.Http.HttpRequestMessage, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
SendAsync(request: System.Net.Http.HttpRequestMessage, completionOption: System.Net.Http.HttpCompletionOption): Promise<System.Net.Http.HttpResponseMessage>;
SendAsync(request: System.Net.Http.HttpRequestMessage, completionOption: System.Net.Http.HttpCompletionOption, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
CancelPendingRequests(): void;
}
class HttpClientHandler extends System.Net.Http.HttpMessageHandler implements System.IDisposable {
constructor();
readonly SupportsAutomaticDecompression: boolean;
readonly SupportsProxy: boolean;
readonly SupportsRedirectConfiguration: boolean;
MeterFactory: System.Diagnostics.Metrics.IMeterFactory;
UseCookies: boolean;
CookieContainer: System.Net.CookieContainer;
AutomaticDecompression: System.Net.DecompressionMethods;
UseProxy: boolean;
Proxy: System.Net.IWebProxy;
DefaultProxyCredentials: System.Net.ICredentials;
PreAuthenticate: boolean;
UseDefaultCredentials: boolean;
Credentials: System.Net.ICredentials;
AllowAutoRedirect: boolean;
MaxAutomaticRedirections: int;
MaxConnectionsPerServer: int;
MaxRequestContentBufferSize: long;
MaxResponseHeadersLength: int;
ClientCertificateOptions: System.Net.Http.ClientCertificateOption;
readonly ClientCertificates: System.Security.Cryptography.X509Certificates.X509CertificateCollection;
ServerCertificateCustomValidationCallback: System.Func<System.Net.Http.HttpRequestMessage, System.Security.Cryptography.X509Certificates.X509Certificate2, System.Security.Cryptography.X509Certificates.X509Chain, System.Net.Security.SslPolicyErrors, boolean>;
CheckCertificateRevocationList: boolean;
SslProtocols: System.Security.Authentication.SslProtocols;
readonly Properties: System.Collections.Generic.IDictionary<string, any>;
static readonly DangerousAcceptAnyServerCertificateValidator: System.Func<System.Net.Http.HttpRequestMessage, System.Security.Cryptography.X509Certificates.X509Certificate2, System.Security.Cryptography.X509Certificates.X509Chain, System.Net.Security.SslPolicyErrors, boolean>;
}
enum HttpCompletionOption {
ResponseContentRead = 0,
ResponseHeadersRead = 1
}
class HttpContent implements System.IDisposable {
readonly Headers: System.Net.Http.Headers.HttpContentHeaders;
ReadAsStringAsync(): Promise<string>;
ReadAsStringAsync(cancellationToken: System.Threading.CancellationToken): Promise<string>;
ReadAsByteArrayAsync(): Promise<ReadonlyArray<byte>>;
ReadAsByteArrayAsync(cancellationToken: System.Threading.CancellationToken): Promise<ReadonlyArray<byte>>;
ReadAsStream(): System.IO.Stream;
ReadAsStream(cancellationToken: System.Threading.CancellationToken): System.IO.Stream;
ReadAsStreamAsync(): Promise<System.IO.Stream>;
ReadAsStreamAsync(cancellationToken: System.Threading.CancellationToken): Promise<System.IO.Stream>;
CopyTo(stream: System.IO.Stream, context: System.Net.TransportContext, cancellationToken: System.Threading.CancellationToken): void;
CopyToAsync(stream: System.IO.Stream): System.Threading.Tasks.Task;
CopyToAsync(stream: System.IO.Stream, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
CopyToAsync(stream: System.IO.Stream, context: System.Net.TransportContext): System.Threading.Tasks.Task;
CopyToAsync(stream: System.IO.Stream, context: System.Net.TransportContext, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
LoadIntoBufferAsync(): System.Threading.Tasks.Task;
LoadIntoBufferAsync(maxBufferSize: long): System.Threading.Tasks.Task;
LoadIntoBufferAsync(cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
LoadIntoBufferAsync(maxBufferSize: long, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
Dispose(): void;
}
class HttpIOException extends System.IO.IOException implements System.Runtime.Serialization.ISerializable {
constructor(httpRequestError: System.Net.Http.HttpRequestError, message?: string, innerException?: System.Exception);
readonly HttpRequestError: System.Net.Http.HttpRequestError;
readonly Message: string;
}
enum HttpKeepAlivePingPolicy {
WithActiveRequests = 0,
Always = 1
}
class HttpMessageHandler implements System.IDisposable {
Dispose(): void;
}
class HttpMessageInvoker implements System.IDisposable {
constructor(handler: System.Net.Http.HttpMessageHandler);
constructor(handler: System.Net.Http.HttpMessageHandler, disposeHandler: boolean);
Send(request: System.Net.Http.HttpRequestMessage, cancellationToken: System.Threading.CancellationToken): System.Net.Http.HttpResponseMessage;
SendAsync(request: System.Net.Http.HttpRequestMessage, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>;
Dispose(): void;
}
class HttpMethod implements System.IEquatable<System.Net.Http.HttpMethod> {
constructor(method: string);
static readonly Get: System.Net.Http.HttpMethod;
static readonly Put: System.Net.Http.HttpMethod;
static readonly Post: System.Net.Http.HttpMethod;
static readonly Delete: System.Net.Http.HttpMethod;
static readonly Head: System.Net.Http.HttpMethod;
static readonly Options: System.Net.Http.HttpMethod;
static readonly Trace: System.Net.Http.HttpMethod;
static readonly Patch: System.Net.Http.HttpMethod;
static readonly Query: System.Net.Http.HttpMethod;
static readonly Connect: System.Net.Http.HttpMethod;
readonly Method: string;
static Parse(method: System.ReadOnlySpan<number>): System.Net.Http.HttpMethod;
}
class HttpProtocolException extends System.Net.Http.HttpIOException implements System.Runtime.Serialization.ISerializable {
constructor(errorCode: long, message: string, innerException: System.Exception);
readonly ErrorCode: long;
}
enum HttpRequestError {
Unknown = 0,
NameResolutionError = 1,
ConnectionError = 2,
SecureConnectionError = 3,
HttpProtocolError = 4,
ExtendedConnectNotSupported = 5,
VersionNegotiationError = 6,
UserAuthenticationError = 7,
ProxyTunnelError = 8,
InvalidResponse = 9,
ResponseEnded = 10,
ConfigurationLimitExceeded = 11
}
class HttpRequestException extends System.Exception implements System.Runtime.Serialization.ISerializable {
constructor();
constructor(message: string);
constructor(message: string, inner: System.Exception);
constructor(message: string, inner: System.Exception, statusCode: System.Net.HttpStatusCode | null);
constructor(httpRequestError: System.Net.Http.HttpRequestError, message?: string, inner?: System.Exception, statusCode?: System.Net.HttpStatusCode | null);
readonly HttpRequestError: System.Net.Http.HttpRequestError;
readonly StatusCode: System.Net.HttpStatusCode | null;
}
class HttpRequestMessage implements System.IDisposable {
constructor();
constructor(method: System.Net.Http.HttpMethod, requestUri: System.Uri);
constructor(method: System.Net.Http.HttpMethod, requestUri: string);
Version: System.Version;
VersionPolicy: System.Net.Http.HttpVersionPolicy;
Content: System.Net.Http.HttpContent;
Method: System.Net.Http.HttpMethod;
RequestUri: System.Uri;
readonly Headers: System.Net.Http.Headers.HttpRequestHeaders;
readonly Properties: System.Collections.Generic.IDictionary<string, any>;
readonly Options: System.Net.Http.HttpRequestOptions;
Dispose(): void;
}
class HttpRequestOptions implements System.Collections.Generic.IDictionary<string, any>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, any>>, ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>>, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyDictionary<string, any>, ReadonlyArray<System.Collections.Generic.KeyValuePair<string, any>> {
constructor();
TryGetValue<TValue>(key: System.Net.Http.HttpRequestOptionsKey<TValue>, value: TValue): boolean;
Set<TValue>(key: System.Net.Http.HttpRequestOptionsKey<TValue>, value: TValue): void;
}
class HttpRequestOptionsKey<TValue> {
constructor(key: string);
readonly Key: string;
}
class HttpResponseMessage implements System.IDisposable {
constructor();
constructor(statusCode: System.Net.HttpStatusCode);
Version: System.Version;
Content: System.Net.Http.HttpContent;
StatusCode: System.Net.HttpStatusCode;
ReasonPhrase: string;
readonly Headers: System.Net.Http.Headers.HttpResponseHeaders;
readonly TrailingHeaders: System.Net.Http.Headers.HttpResponseHeaders;
RequestMessage: System.Net.Http.HttpRequestMessage;
readonly IsSuccessStatusCode: boolean;
EnsureSuccessStatusCode(): System.Net.Http.HttpResponseMessage;
Dispose(): void;
}
enum HttpVersionPolicy {
RequestVersionOrLower = 0,
RequestVersionOrHigher = 1,
RequestVersionExact = 2
}
class MessageProcessingHandler extends System.Net.Http.DelegatingHandler implements System.IDisposable {
}
class MultipartContent extends System.Net.Http.HttpContent implements System.IDisposable, ReadonlyArray<System.Net.Http.HttpContent>, System.Collections.IEnumerable {
constructor();
constructor(subtype: string);
constructor(subtype: string, boundary: string);
HeaderEncodingSelector: System.Net.Http.HeaderEncodingSelector<System.Net.Http.HttpContent>;
Add(content: System.Net.Http.HttpContent): void;
GetEnumerator(): System.Collections.Generic.IEnumerator<System.Net.Http.HttpContent>;
}
class MultipartFormDataContent extends System.Net.Http.MultipartContent implements System.IDisposable, ReadonlyArray<System.Net.Http.HttpContent>, System.Collections.IEnumerable {
constructor();
constructor(boundary: string);
Add(content: System.Net.Http.HttpContent): void;
Add(content: System.Net.Http.HttpContent, name: string): void;
Add(content: System.Net.Http.HttpContent, name: string, fileName: string): void;
}
class ReadOnlyMemoryContent extends System.Net.Http.HttpContent implements System.IDisposable {
constructor(content: System.ReadOnlyMemory<byte>);
}
class SocketsHttpConnectionContext {
readonly DnsEndPoint: System.Net.DnsEndPoint;
readonly InitialRequestMessage: System.Net.Http.HttpRequestMessage;
}
class SocketsHttpHandler extends System.Net.Http.HttpMessageHandler implements System.IDisposable {
constructor();
static readonly IsSupported: boolean;
UseCookies: boolean;
CookieContainer: System.Net.CookieContainer;
AutomaticDecompression: System.Net.DecompressionMethods;
UseProxy: boolean;
Proxy: System.Net.IWebProxy;
DefaultProxyCredentials: System.Net.ICredentials;
PreAuthenticate: boolean;
Credentials: System.Net.ICredentials;
AllowAutoRedirect: boolean;
MaxAutomaticRedirections: int;
MaxConnectionsPerServer: int;
MaxResponseDrainSize: int;
ResponseDrainTimeout: System.TimeSpan;
MaxResponseHeadersLength: int;
SslOptions: System.Net.Security.SslClientAuthenticationOptions;
PooledConnectionLifetime: System.TimeSpan;
PooledConnectionIdleTimeout: System.TimeSpan;
ConnectTimeout: System.TimeSpan;
Expect100ContinueTimeout: System.TimeSpan;
InitialHttp2StreamWindowSize: int;
KeepAlivePingDelay: System.TimeSpan;
KeepAlivePingTimeout: System.TimeSpan;
KeepAlivePingPolicy: System.Net.Http.HttpKeepAlivePingPolicy;
EnableMultipleHttp2Connections: boolean;
EnableMultipleHttp3Connections: boolean;
ConnectCallback: System.Func<System.Net.Http.SocketsHttpConnectionContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<System.IO.Stream>>;
PlaintextStreamFilter: System.Func<System.Net.Http.SocketsHttpPlaintextStreamFilterContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<System.IO.Stream>>;
readonly Properties: System.Collections.Generic.IDictionary<string, any>;
RequestHeaderEncodingSelector: System.Net.Http.HeaderEncodingSelector<System.Net.Http.HttpRequestMessage>;
ResponseHeaderEncodingSelector: System.Net.Http.HeaderEncodingSelector<System.Net.Http.HttpRequestMessage>;
ActivityHeadersPropagator: System.Diagnostics.DistributedContextPropagator;
MeterFactory: System.Diagnostics.Metrics.IMeterFactory;
}
class SocketsHttpPlaintextStreamFilterContext {
readonly PlaintextStream: System.IO.Stream;
readonly NegotiatedHttpVersion: System.Version;
readonly InitialRequestMessage: System.Net.Http.HttpRequestMessage;
}
class StreamContent extends System.Net.Http.HttpContent implements System.IDisposable {
constructor(content: System.IO.Stream);
constructor(content: System.IO.Stream, bufferSize: int);
}
class StringContent extends System.Net.Http.ByteArrayContent implements System.IDisposable {
constructor(content: string);
constructor(content: string, mediaType: System.Net.Http.Headers.MediaTypeHeaderValue);
constructor(content: string, encoding: System.Text.Encoding);
constructor(content: string, encoding: System.Text.Encoding, mediaType: string);
constructor(content: string, encoding: System.Text.Encoding, mediaType: System.Net.Http.Headers.MediaTypeHeaderValue);
}
}
declare namespace System.Net.Http.Headers {
class AuthenticationHeaderValue implements System.ICloneable {
constructor(scheme: string);
constructor(scheme: string, parameter: string);
readonly Scheme: string;
readonly Parameter: string;
static Parse(input: string): System.Net.Http.Headers.AuthenticationHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.AuthenticationHeaderValue): boolean;
}
class CacheControlHeaderValue implements System.ICloneable {
constructor();
NoCache: boolean;
readonly NoCacheHeaders: System.Collections.Generic.ICollection<string>;
NoStore: boolean;
MaxAge: System.TimeSpan | null;
SharedMaxAge: System.TimeSpan | null;
MaxStale: boolean;
MaxStaleLimit: System.TimeSpan | null;
MinFresh: System.TimeSpan | null;
NoTransform: boolean;
OnlyIfCached: boolean;
Public: boolean;
Private: boolean;
readonly PrivateHeaders: System.Collections.Generic.ICollection<string>;
MustRevalidate: boolean;
ProxyRevalidate: boolean;
readonly Extensions: System.Collections.Generic.ICollection<System.Net.Http.Headers.NameValueHeaderValue>;
static Parse(input: string): System.Net.Http.Headers.CacheControlHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.CacheControlHeaderValue): boolean;
}
class ContentDispositionHeaderValue implements System.ICloneable {
constructor(dispositionType: string);
DispositionType: string;
readonly Parameters: System.Collections.Generic.ICollection<System.Net.Http.Headers.NameValueHeaderValue>;
Name: string;
FileName: string;
FileNameStar: string;
CreationDate: System.DateTimeOffset | null;
ModificationDate: System.DateTimeOffset | null;
ReadDate: System.DateTimeOffset | null;
Size: long | null;
static Parse(input: string): System.Net.Http.Headers.ContentDispositionHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.ContentDispositionHeaderValue): boolean;
}
class ContentRangeHeaderValue implements System.ICloneable {
constructor(from: long, to: long, length: long);
constructor(length: long);
constructor(from: long, to: long);
Unit: string;
readonly From: long | null;
readonly To: long | null;
readonly Length: long | null;
readonly HasLength: boolean;
readonly HasRange: boolean;
static Parse(input: string): System.Net.Http.Headers.ContentRangeHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.ContentRangeHeaderValue): boolean;
}
class EntityTagHeaderValue implements System.ICloneable {
constructor(tag: string);
constructor(tag: string, isWeak: boolean);
Tag: string;
IsWeak: boolean;
static readonly Any: System.Net.Http.Headers.EntityTagHeaderValue;
static Parse(input: string): System.Net.Http.Headers.EntityTagHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.EntityTagHeaderValue): boolean;
}
class Enumerator implements System.Collections.Generic.IEnumerator<string>, System.IDisposable, System.Collections.IEnumerator {
readonly Current: string;
MoveNext(): boolean;
Dispose(): void;
}
class Enumerator implements System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, System.Net.Http.Headers.HeaderStringValues>>, System.IDisposable, System.Collections.IEnumerator {
readonly Current: System.Collections.Generic.KeyValuePair<string, System.Net.Http.Headers.HeaderStringValues>;
MoveNext(): boolean;
Dispose(): void;
}
class HeaderStringValues implements ReadonlyArray<string>, ReadonlyArray<string>, System.Collections.IEnumerable {
readonly Count: int;
GetEnumerator(): System.Net.Http.Headers.HeaderStringValues.Enumerator;
}
class HttpContentHeaders extends System.Net.Http.Headers.HttpHeaders implements ReadonlyArray<System.Collections.Generic.KeyValuePair<string, ReadonlyArray<string>>>, System.Collections.IEnumerable {
readonly Allow: System.Collections.Generic.ICollection<string>;
ContentDisposition: System.Net.Http.Headers.ContentDispositionHeaderValue;
readonly ContentEncoding: System.Collections.Generic.ICollection<string>;
readonly ContentLanguage: System.Collections.Generic.ICollection<string>;
ContentLength: long | null;
ContentLocation: System.Uri;
ContentMD5: ReadonlyArray<byte>;
ContentRange: System.Net.Http.Headers.ContentRangeHeaderValue;
ContentType: System.Net.Http.Headers.MediaTypeHeaderValue;
Expires: System.DateTimeOffset | null;
LastModified: System.DateTimeOffset | null;
}
class HttpHeaders implements ReadonlyArray<System.Collections.Generic.KeyValuePair<string, ReadonlyArray<string>>>, System.Collections.IEnumerable {
readonly NonValidated: System.Net.Http.Headers.HttpHeadersNonValidated;
Add(name: string, value: string): void;
Add(name: string, values: ReadonlyArray<string>): void;
TryAddWithoutValidation(name: string, value: string): boolean;
TryAddWithoutValidation(name: string, values: ReadonlyArray<string>): boolean;
GetValues(name: string): ReadonlyArray<string>;
TryGetValues(name: string, values: ReadonlyArray<string>): boolean;
Contains(name: string): boolean;
GetEnumerator(): System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, ReadonlyArray<string>>>;
Remove(name: string): boolean;
Clear(): void;
}
class HttpHeadersNonValidated implements System.Collections.Generic.IReadOnlyDictionary<string, System.Net.Http.Headers.HeaderStringValues>, ReadonlyArray<System.Collections.Generic.KeyValuePair<string, System.Net.Http.Headers.HeaderStringValues>>, ReadonlyArray<System.Collections.Generic.KeyValuePair<string, System.Net.Http.Headers.HeaderStringValues>>, System.Collections.IEnumerable {
readonly Count: int;
readonly Item: System.Net.Http.Headers.HeaderStringValues;
Contains(headerName: string): boolean;
TryGetValues(headerName: string, values: System.Net.Http.Headers.HeaderStringValues): boolean;
GetEnumerator(): System.Net.Http.Headers.HttpHeadersNonValidated.Enumerator;
}
class HttpHeaderValueCollection<T> implements System.Collections.Generic.ICollection<T>, ReadonlyArray<T>, System.Collections.IEnumerable {
readonly Count: int;
readonly IsReadOnly: boolean;
Add(item: T): void;
ParseAdd(input: string): void;
TryParseAdd(input: string): boolean;
Clear(): void;
Contains(item: T): boolean;
CopyTo(array: ReadonlyArray<T>, arrayIndex: int): void;
Remove(item: T): boolean;
GetEnumerator(): System.Collections.Generic.IEnumerator<T>;
}
class HttpRequestHeaders extends System.Net.Http.Headers.HttpHeaders implements ReadonlyArray<System.Collections.Generic.KeyValuePair<string, ReadonlyArray<string>>>, System.Collections.IEnumerable {
readonly Accept: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.MediaTypeWithQualityHeaderValue>;
readonly AcceptCharset: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.StringWithQualityHeaderValue>;
readonly AcceptEncoding: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.StringWithQualityHeaderValue>;
readonly AcceptLanguage: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.StringWithQualityHeaderValue>;
Authorization: System.Net.Http.Headers.AuthenticationHeaderValue;
ExpectContinue: boolean | null;
From: string;
Host: string;
readonly IfMatch: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.EntityTagHeaderValue>;
IfModifiedSince: System.DateTimeOffset | null;
readonly IfNoneMatch: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.EntityTagHeaderValue>;
IfRange: System.Net.Http.Headers.RangeConditionHeaderValue;
IfUnmodifiedSince: System.DateTimeOffset | null;
MaxForwards: int | null;
Protocol: string;
ProxyAuthorization: System.Net.Http.Headers.AuthenticationHeaderValue;
Range: System.Net.Http.Headers.RangeHeaderValue;
Referrer: System.Uri;
readonly TE: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.TransferCodingWithQualityHeaderValue>;
readonly UserAgent: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.ProductInfoHeaderValue>;
readonly Expect: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.NameValueWithParametersHeaderValue>;
CacheControl: System.Net.Http.Headers.CacheControlHeaderValue;
readonly Connection: System.Net.Http.Headers.HttpHeaderValueCollection<string>;
ConnectionClose: boolean | null;
Date: System.DateTimeOffset | null;
readonly Pragma: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.NameValueHeaderValue>;
readonly Trailer: System.Net.Http.Headers.HttpHeaderValueCollection<string>;
readonly TransferEncoding: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.TransferCodingHeaderValue>;
TransferEncodingChunked: boolean | null;
readonly Upgrade: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.ProductHeaderValue>;
readonly Via: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.ViaHeaderValue>;
readonly Warning: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.WarningHeaderValue>;
}
class HttpResponseHeaders extends System.Net.Http.Headers.HttpHeaders implements ReadonlyArray<System.Collections.Generic.KeyValuePair<string, ReadonlyArray<string>>>, System.Collections.IEnumerable {
readonly AcceptRanges: System.Net.Http.Headers.HttpHeaderValueCollection<string>;
Age: System.TimeSpan | null;
ETag: System.Net.Http.Headers.EntityTagHeaderValue;
Location: System.Uri;
readonly ProxyAuthenticate: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.AuthenticationHeaderValue>;
RetryAfter: System.Net.Http.Headers.RetryConditionHeaderValue;
readonly Server: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.ProductInfoHeaderValue>;
readonly Vary: System.Net.Http.Headers.HttpHeaderValueCollection<string>;
readonly WwwAuthenticate: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.AuthenticationHeaderValue>;
CacheControl: System.Net.Http.Headers.CacheControlHeaderValue;
readonly Connection: System.Net.Http.Headers.HttpHeaderValueCollection<string>;
ConnectionClose: boolean | null;
Date: System.DateTimeOffset | null;
readonly Pragma: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.NameValueHeaderValue>;
readonly Trailer: System.Net.Http.Headers.HttpHeaderValueCollection<string>;
readonly TransferEncoding: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.TransferCodingHeaderValue>;
TransferEncodingChunked: boolean | null;
readonly Upgrade: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.ProductHeaderValue>;
readonly Via: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.ViaHeaderValue>;
readonly Warning: System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.WarningHeaderValue>;
}
class MediaTypeHeaderValue implements System.ICloneable {
constructor(mediaType: string);
constructor(mediaType: string, charSet: string);
CharSet: string;
readonly Parameters: System.Collections.Generic.ICollection<System.Net.Http.Headers.NameValueHeaderValue>;
MediaType: string;
static Parse(input: string): System.Net.Http.Headers.MediaTypeHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.MediaTypeHeaderValue): boolean;
}
class MediaTypeWithQualityHeaderValue extends System.Net.Http.Headers.MediaTypeHeaderValue implements System.ICloneable {
constructor(mediaType: string);
constructor(mediaType: string, quality: double);
Quality: double | null;
static Parse(input: string): System.Net.Http.Headers.MediaTypeWithQualityHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.MediaTypeWithQualityHeaderValue): boolean;
}
class NameValueHeaderValue implements System.ICloneable {
constructor(name: string);
constructor(name: string, value: string);
readonly Name: string;
Value: string;
static Parse(input: string): System.Net.Http.Headers.NameValueHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.NameValueHeaderValue): boolean;
}
class NameValueWithParametersHeaderValue extends System.Net.Http.Headers.NameValueHeaderValue implements System.ICloneable {
constructor(name: string);
constructor(name: string, value: string);
readonly Parameters: System.Collections.Generic.ICollection<System.Net.Http.Headers.NameValueHeaderValue>;
static Parse(input: string): System.Net.Http.Headers.NameValueWithParametersHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.NameValueWithParametersHeaderValue): boolean;
}
class ProductHeaderValue implements System.ICloneable {
constructor(name: string);
constructor(name: string, version: string);
readonly Name: string;
readonly Version: string;
static Parse(input: string): System.Net.Http.Headers.ProductHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.ProductHeaderValue): boolean;
}
class ProductInfoHeaderValue implements System.ICloneable {
constructor(productName: string, productVersion: string);
constructor(product: System.Net.Http.Headers.ProductHeaderValue);
constructor(comment: string);
readonly Product: System.Net.Http.Headers.ProductHeaderValue;
readonly Comment: string;
static Parse(input: string): System.Net.Http.Headers.ProductInfoHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.ProductInfoHeaderValue): boolean;
}
class RangeConditionHeaderValue implements System.ICloneable {
constructor(date: System.DateTimeOffset);
constructor(entityTag: System.Net.Http.Headers.EntityTagHeaderValue);
constructor(entityTag: string);
readonly Date: System.DateTimeOffset | null;
readonly EntityTag: System.Net.Http.Headers.EntityTagHeaderValue;
static Parse(input: string): System.Net.Http.Headers.RangeConditionHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.RangeConditionHeaderValue): boolean;
}
class RangeHeaderValue implements System.ICloneable {
constructor();
constructor(from: long | null, to: long | null);
Unit: string;
readonly Ranges: System.Collections.Generic.ICollection<System.Net.Http.Headers.RangeItemHeaderValue>;
static Parse(input: string): System.Net.Http.Headers.RangeHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.RangeHeaderValue): boolean;
}
class RangeItemHeaderValue implements System.ICloneable {
constructor(from: long | null, to: long | null);
readonly From: long | null;
readonly To: long | null;
}
class RetryConditionHeaderValue implements System.ICloneable {
constructor(date: System.DateTimeOffset);
constructor(delta: System.TimeSpan);
readonly Date: System.DateTimeOffset | null;
readonly Delta: System.TimeSpan | null;
static Parse(input: string): System.Net.Http.Headers.RetryConditionHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.RetryConditionHeaderValue): boolean;
}
class StringWithQualityHeaderValue implements System.ICloneable {
constructor(value: string);
constructor(value: string, quality: double);
readonly Value: string;
readonly Quality: double | null;
static Parse(input: string): System.Net.Http.Headers.StringWithQualityHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.StringWithQualityHeaderValue): boolean;
}
class TransferCodingHeaderValue implements System.ICloneable {
constructor(value: string);
readonly Value: string;
readonly Parameters: System.Collections.Generic.ICollection<System.Net.Http.Headers.NameValueHeaderValue>;
static Parse(input: string): System.Net.Http.Headers.TransferCodingHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.TransferCodingHeaderValue): boolean;
}
class TransferCodingWithQualityHeaderValue extends System.Net.Http.Headers.TransferCodingHeaderValue implements System.ICloneable {
constructor(value: string);
constructor(value: string, quality: double);
Quality: double | null;
static Parse(input: string): System.Net.Http.Headers.TransferCodingWithQualityHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.TransferCodingWithQualityHeaderValue): boolean;
}
class ViaHeaderValue implements System.ICloneable {
constructor(protocolVersion: string, receivedBy: string);
constructor(protocolVersion: string, receivedBy: string, protocolName: string);
constructor(protocolVersion: string, receivedBy: string, protocolName: string, comment: string);
readonly ProtocolName: string;
readonly ProtocolVersion: string;
readonly ReceivedBy: string;
readonly Comment: string;
static Parse(input: string): System.Net.Http.Headers.ViaHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.ViaHeaderValue): boolean;
}
class WarningHeaderValue implements System.ICloneable {
constructor(code: int, agent: string, text: string);
constructor(code: int, agent: string, text: string, date: System.DateTimeOffset);
readonly Code: int;
readonly Agent: string;
readonly Text: string;
readonly Date: System.DateTimeOffset | null;
static Parse(input: string): System.Net.Http.Headers.WarningHeaderValue;
static TryParse(input: string, parsedValue: System.Net.Http.Headers.WarningHeaderValue): boolean;
}
}
declare namespace System.Net.Http.Metrics {
class HttpMetricsEnrichmentContext {
readonly Request: System.Net.Http.HttpRequestMessage;
readonly Response: System.Net.Http.HttpResponseMessage;
readonly Exception: System.Exception;
AddCustomTag(name: string, value: any): void;
static AddCallback(request: System.Net.Http.HttpRequestMessage, callback: System.Action<System.Net.Http.Metrics.HttpMetricsEnrichmentContext>): void;
}
}