@tsonic/dotnet 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +18 -18
- package/Microsoft.VisualBasic/internal/index.d.ts +1 -1
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +1 -1
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +1 -1
- package/Microsoft.Win32/internal/index.d.ts +11 -11
- package/System/bindings.json +114 -114
- package/System/internal/index.d.ts +994 -1006
- package/System/internal/metadata.json +73 -73
- package/System.Buffers/internal/index.d.ts +3 -3
- package/System.CodeDom.Compiler/internal/index.d.ts +11 -11
- package/System.Collections/internal/index.d.ts +26 -28
- package/System.Collections.Concurrent/internal/index.d.ts +10 -10
- package/System.Collections.Frozen/bindings.json +20 -20
- package/System.Collections.Frozen/internal/index.d.ts +6 -6
- package/System.Collections.Frozen/internal/metadata.json +10 -10
- package/System.Collections.Generic/bindings.json +44 -20
- package/System.Collections.Generic/internal/index.d.ts +68 -60
- package/System.Collections.Generic/internal/metadata.json +26 -10
- package/System.Collections.Immutable/internal/index.d.ts +99 -99
- package/System.Collections.ObjectModel/internal/index.d.ts +15 -15
- package/System.Collections.Specialized/internal/index.d.ts +63 -65
- package/System.ComponentModel/internal/index.d.ts +428 -430
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +66 -66
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +2 -2
- package/System.ComponentModel.Design/internal/index.d.ts +72 -72
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +33 -33
- package/System.Data/internal/index.d.ts +168 -168
- package/System.Data.Common/internal/index.d.ts +48 -48
- package/System.Data.SqlTypes/internal/index.d.ts +21 -21
- package/System.Diagnostics/internal/index.d.ts +262 -262
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +25 -25
- package/System.Diagnostics.Contracts/internal/index.d.ts +8 -8
- package/System.Diagnostics.Metrics/internal/index.d.ts +33 -33
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +5 -5
- package/System.Diagnostics.Tracing/internal/index.d.ts +28 -28
- package/System.Drawing/internal/index.d.ts +77 -77
- package/System.Dynamic/internal/index.d.ts +27 -27
- package/System.Formats.Asn1/internal/index.d.ts +4 -4
- package/System.Formats.Tar/internal/index.d.ts +3 -3
- package/System.Globalization/internal/index.d.ts +18 -18
- package/System.IO/internal/index.d.ts +107 -107
- package/System.IO.Compression/internal/index.d.ts +25 -25
- package/System.IO.Enumeration/internal/index.d.ts +5 -5
- package/System.IO.IsolatedStorage/internal/index.d.ts +9 -9
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +8 -8
- package/System.IO.Pipelines/internal/index.d.ts +5 -5
- package/System.IO.Pipes/internal/index.d.ts +4 -4
- package/System.Linq/internal/index.d.ts +180 -180
- package/System.Linq.Expressions/internal/index.d.ts +169 -169
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +2 -2
- package/System.Net/internal/index.d.ts +151 -153
- package/System.Net.Cache/internal/index.d.ts +2 -2
- package/System.Net.Http/internal/index.d.ts +58 -58
- package/System.Net.Http.Headers/internal/index.d.ts +48 -48
- package/System.Net.Http.Json/internal/index.d.ts +58 -58
- package/System.Net.Http.Metrics/internal/index.d.ts +1 -1
- package/System.Net.Mail/internal/index.d.ts +72 -72
- package/System.Net.Mime/internal/index.d.ts +2 -2
- package/System.Net.NetworkInformation/internal/index.d.ts +24 -24
- package/System.Net.Quic/internal/index.d.ts +4 -4
- package/System.Net.Security/internal/index.d.ts +52 -52
- package/System.Net.ServerSentEvents/internal/index.d.ts +2 -2
- package/System.Net.Sockets/internal/index.d.ts +41 -41
- package/System.Net.WebSockets/internal/index.d.ts +34 -34
- package/System.Numerics/bindings.json +384 -0
- package/System.Numerics/internal/index.d.ts +91 -93
- package/System.Numerics/internal/metadata.json +256 -0
- package/System.Reflection/internal/index.d.ts +219 -219
- package/System.Reflection.Emit/internal/index.d.ts +118 -118
- package/System.Reflection.Metadata/bindings.json +48 -0
- package/System.Reflection.Metadata/internal/index.d.ts +14 -14
- package/System.Reflection.Metadata/internal/metadata.json +32 -0
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +5 -5
- package/System.Reflection.PortableExecutable/internal/index.d.ts +4 -4
- package/System.Resources/internal/index.d.ts +24 -24
- package/System.Runtime/internal/index.d.ts +5 -5
- package/System.Runtime.CompilerServices/internal/index.d.ts +31 -31
- package/System.Runtime.InteropServices/bindings.json +22 -22
- package/System.Runtime.InteropServices/internal/index.d.ts +93 -93
- package/System.Runtime.InteropServices/internal/metadata.json +13 -13
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +10 -10
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +23 -23
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +36 -36
- package/System.Runtime.Loader/internal/index.d.ts +6 -6
- package/System.Runtime.Remoting/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization/internal/index.d.ts +77 -79
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +16 -16
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +4 -4
- package/System.Runtime.Serialization.Json/internal/index.d.ts +26 -26
- package/System.Runtime.Versioning/internal/index.d.ts +9 -9
- package/System.Security/internal/index.d.ts +49 -49
- package/System.Security.AccessControl/internal/index.d.ts +31 -31
- package/System.Security.Authentication/internal/index.d.ts +4 -4
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +10 -10
- package/System.Security.Claims/internal/index.d.ts +23 -25
- package/System.Security.Cryptography/internal/index.d.ts +189 -189
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +71 -71
- package/System.Security.Policy/internal/index.d.ts +2 -2
- package/System.Security.Principal/internal/index.d.ts +9 -11
- package/System.Text/internal/index.d.ts +51 -51
- package/System.Text.Json/internal/index.d.ts +83 -83
- package/System.Text.Json.Nodes/internal/index.d.ts +65 -65
- package/System.Text.Json.Schema/internal/index.d.ts +5 -5
- package/System.Text.Json.Serialization/internal/index.d.ts +10 -10
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +47 -47
- package/System.Text.RegularExpressions/internal/index.d.ts +5 -5
- package/System.Text.Unicode/internal/index.d.ts +4 -4
- package/System.Threading/internal/index.d.ts +87 -87
- package/System.Threading.Channels/internal/index.d.ts +8 -8
- package/System.Threading.Tasks/internal/index.d.ts +84 -94
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +29 -26
- package/System.Threading.Tasks.Sources/internal/index.d.ts +4 -4
- package/System.Timers/internal/index.d.ts +3 -3
- package/System.Transactions/internal/index.d.ts +20 -20
- package/System.Web/internal/index.d.ts +31 -31
- package/System.Windows.Input/internal/index.d.ts +2 -2
- package/System.Xml/internal/index.d.ts +215 -215
- package/System.Xml.Linq/internal/index.d.ts +51 -51
- package/System.Xml.Resolvers/internal/index.d.ts +4 -4
- package/System.Xml.Schema/internal/index.d.ts +105 -105
- package/System.Xml.Serialization/internal/index.d.ts +136 -136
- package/System.Xml.XPath/internal/index.d.ts +19 -19
- package/System.Xml.Xsl/internal/index.d.ts +41 -41
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +20 -20
- package/__internal/extensions/index.d.ts +415 -414
- package/package.json +1 -1
|
@@ -340,8 +340,8 @@ export type WriteStreamClosedEventHandler = (sender: unknown, e: WriteStreamClos
|
|
|
340
340
|
export interface IAuthenticationModule$instance {
|
|
341
341
|
readonly canPreAuthenticate: boolean;
|
|
342
342
|
readonly authenticationType: string;
|
|
343
|
-
authenticate(challenge: string, request: WebRequest, credentials: ICredentials): Authorization;
|
|
344
|
-
preAuthenticate(request: WebRequest, credentials: ICredentials): Authorization;
|
|
343
|
+
authenticate(challenge: string, request: WebRequest, credentials: ICredentials): Authorization | undefined;
|
|
344
|
+
preAuthenticate(request: WebRequest, credentials: ICredentials): Authorization | undefined;
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
|
|
@@ -370,8 +370,8 @@ export type ICredentialsByHost = ICredentialsByHost$instance;
|
|
|
370
370
|
|
|
371
371
|
export interface IWebProxy$instance {
|
|
372
372
|
credentials: ICredentials;
|
|
373
|
-
getProxy(destination: Uri): Uri;
|
|
374
|
-
isBypassed(host: Uri): boolean;
|
|
373
|
+
getProxy(destination: Uri | undefined): Uri | undefined;
|
|
374
|
+
isBypassed(host: Uri | undefined): boolean;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
|
|
@@ -400,7 +400,7 @@ export interface IPNetwork$instance {
|
|
|
400
400
|
equals(other: IPNetwork): boolean;
|
|
401
401
|
equals(obj: unknown): boolean;
|
|
402
402
|
getHashCode(): int;
|
|
403
|
-
toString(): string;
|
|
403
|
+
toString(): string | undefined;
|
|
404
404
|
tryFormat(destination: Span_1<System_Internal.Char>, charsWritten: int): boolean;
|
|
405
405
|
tryFormat(utf8Destination: Span_1<System_Internal.Byte>, bytesWritten: int): boolean;
|
|
406
406
|
}
|
|
@@ -442,11 +442,11 @@ export interface AuthenticationManager$instance {
|
|
|
442
442
|
|
|
443
443
|
export const AuthenticationManager: {
|
|
444
444
|
new(): AuthenticationManager;
|
|
445
|
-
credentialPolicy: ICredentialPolicy;
|
|
445
|
+
credentialPolicy: ICredentialPolicy | undefined;
|
|
446
446
|
readonly customTargetNameDictionary: StringDictionary;
|
|
447
447
|
readonly registeredModules: IEnumerator;
|
|
448
|
-
authenticate(challenge: string, request: WebRequest, credentials: ICredentials): Authorization;
|
|
449
|
-
preAuthenticate(request: WebRequest, credentials: ICredentials): Authorization;
|
|
448
|
+
authenticate(challenge: string, request: WebRequest, credentials: ICredentials): Authorization | undefined;
|
|
449
|
+
preAuthenticate(request: WebRequest, credentials: ICredentials): Authorization | undefined;
|
|
450
450
|
register(authenticationModule: IAuthenticationModule): void;
|
|
451
451
|
unregister(authenticationModule: IAuthenticationModule): void;
|
|
452
452
|
unregister(authenticationScheme: string): void;
|
|
@@ -457,17 +457,17 @@ export type AuthenticationManager = AuthenticationManager$instance;
|
|
|
457
457
|
|
|
458
458
|
export interface Authorization$instance {
|
|
459
459
|
readonly complete: boolean;
|
|
460
|
-
readonly connectionGroupId: string;
|
|
460
|
+
readonly connectionGroupId: string | undefined;
|
|
461
461
|
readonly message: string;
|
|
462
462
|
mutuallyAuthenticated: boolean;
|
|
463
|
-
protectionRealm: string[];
|
|
463
|
+
protectionRealm: string[] | undefined;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
|
|
467
467
|
export const Authorization: {
|
|
468
|
-
new(token: string): Authorization;
|
|
469
|
-
new(token: string, finished: boolean): Authorization;
|
|
470
|
-
new(token: string, finished: boolean, connectionGroupId: string): Authorization;
|
|
468
|
+
new(token: string | undefined): Authorization;
|
|
469
|
+
new(token: string | undefined, finished: boolean): Authorization;
|
|
470
|
+
new(token: string | undefined, finished: boolean, connectionGroupId: string | undefined): Authorization;
|
|
471
471
|
};
|
|
472
472
|
|
|
473
473
|
|
|
@@ -475,7 +475,7 @@ export type Authorization = Authorization$instance;
|
|
|
475
475
|
|
|
476
476
|
export interface Cookie$instance {
|
|
477
477
|
comment: string;
|
|
478
|
-
commentUri: Uri;
|
|
478
|
+
commentUri: Uri | undefined;
|
|
479
479
|
discard: boolean;
|
|
480
480
|
domain: string;
|
|
481
481
|
expired: boolean;
|
|
@@ -496,7 +496,7 @@ export interface Cookie$instance {
|
|
|
496
496
|
|
|
497
497
|
export const Cookie: {
|
|
498
498
|
new(): Cookie;
|
|
499
|
-
new(name: string, value: string): Cookie;
|
|
499
|
+
new(name: string, value: string | undefined): Cookie;
|
|
500
500
|
new(name: string, value: string, path: string): Cookie;
|
|
501
501
|
new(name: string, value: string, path: string, domain: string): Cookie;
|
|
502
502
|
};
|
|
@@ -683,14 +683,14 @@ export const EndPoint: {
|
|
|
683
683
|
export type EndPoint = EndPoint$instance;
|
|
684
684
|
|
|
685
685
|
export interface FileWebRequest$instance extends WebRequest$instance {
|
|
686
|
-
connectionGroupName: string;
|
|
686
|
+
connectionGroupName: string | undefined;
|
|
687
687
|
contentLength: long;
|
|
688
688
|
contentType: string;
|
|
689
689
|
credentials: ICredentials;
|
|
690
690
|
readonly headers: WebHeaderCollection;
|
|
691
691
|
method: string;
|
|
692
692
|
preAuthenticate: boolean;
|
|
693
|
-
proxy: IWebProxy;
|
|
693
|
+
proxy: IWebProxy | undefined;
|
|
694
694
|
readonly requestUri: Uri;
|
|
695
695
|
timeout: int;
|
|
696
696
|
useDefaultCredentials: boolean;
|
|
@@ -754,7 +754,7 @@ export type FileWebResponse = FileWebResponse$instance & __FileWebResponse$views
|
|
|
754
754
|
export interface FtpWebRequest$instance extends WebRequest$instance {
|
|
755
755
|
cachePolicy: RequestCachePolicy;
|
|
756
756
|
clientCertificates: X509CertificateCollection;
|
|
757
|
-
connectionGroupName: string;
|
|
757
|
+
connectionGroupName: string | undefined;
|
|
758
758
|
contentLength: long;
|
|
759
759
|
contentOffset: long;
|
|
760
760
|
contentType: string;
|
|
@@ -764,9 +764,9 @@ export interface FtpWebRequest$instance extends WebRequest$instance {
|
|
|
764
764
|
keepAlive: boolean;
|
|
765
765
|
method: string;
|
|
766
766
|
preAuthenticate: boolean;
|
|
767
|
-
proxy: IWebProxy;
|
|
767
|
+
proxy: IWebProxy | undefined;
|
|
768
768
|
readWriteTimeout: int;
|
|
769
|
-
renameTo: string;
|
|
769
|
+
renameTo: string | undefined;
|
|
770
770
|
readonly requestUri: Uri;
|
|
771
771
|
readonly servicePoint: ServicePoint;
|
|
772
772
|
timeout: int;
|
|
@@ -774,10 +774,10 @@ export interface FtpWebRequest$instance extends WebRequest$instance {
|
|
|
774
774
|
useDefaultCredentials: boolean;
|
|
775
775
|
usePassive: boolean;
|
|
776
776
|
abort(): void;
|
|
777
|
-
beginGetRequestStream(callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
778
|
-
beginGetResponse(callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
779
|
-
endGetRequestStream(asyncResult: IAsyncResult): Stream;
|
|
780
|
-
endGetResponse(asyncResult: IAsyncResult): WebResponse;
|
|
777
|
+
beginGetRequestStream(callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
778
|
+
beginGetResponse(callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
779
|
+
endGetRequestStream(asyncResult: IAsyncResult | undefined): Stream;
|
|
780
|
+
endGetResponse(asyncResult: IAsyncResult | undefined): WebResponse;
|
|
781
781
|
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
782
782
|
getRequestStream(): Stream;
|
|
783
783
|
getResponse(): WebResponse;
|
|
@@ -786,7 +786,7 @@ export interface FtpWebRequest$instance extends WebRequest$instance {
|
|
|
786
786
|
|
|
787
787
|
export const FtpWebRequest: {
|
|
788
788
|
new(): FtpWebRequest;
|
|
789
|
-
defaultCachePolicy: RequestCachePolicy;
|
|
789
|
+
defaultCachePolicy: RequestCachePolicy | undefined;
|
|
790
790
|
};
|
|
791
791
|
|
|
792
792
|
|
|
@@ -800,16 +800,16 @@ export type FtpWebRequest = FtpWebRequest$instance & __FtpWebRequest$views;
|
|
|
800
800
|
|
|
801
801
|
|
|
802
802
|
export interface FtpWebResponse$instance extends WebResponse$instance {
|
|
803
|
-
readonly bannerMessage: string;
|
|
803
|
+
readonly bannerMessage: string | undefined;
|
|
804
804
|
readonly contentLength: long;
|
|
805
|
-
readonly exitMessage: string;
|
|
805
|
+
readonly exitMessage: string | undefined;
|
|
806
806
|
readonly headers: WebHeaderCollection;
|
|
807
807
|
readonly lastModified: DateTime;
|
|
808
808
|
readonly responseUri: Uri;
|
|
809
809
|
readonly statusCode: FtpStatusCode;
|
|
810
810
|
readonly statusDescription: string;
|
|
811
811
|
readonly supportsHeaders: boolean;
|
|
812
|
-
readonly welcomeMessage: string;
|
|
812
|
+
readonly welcomeMessage: string | undefined;
|
|
813
813
|
close(): void;
|
|
814
814
|
dispose(): void;
|
|
815
815
|
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
@@ -847,14 +847,14 @@ export type GlobalProxySelection = GlobalProxySelection$instance;
|
|
|
847
847
|
|
|
848
848
|
export interface HttpListener$instance {
|
|
849
849
|
authenticationSchemes: AuthenticationSchemes;
|
|
850
|
-
authenticationSchemeSelectorDelegate: AuthenticationSchemeSelector;
|
|
850
|
+
authenticationSchemeSelectorDelegate: AuthenticationSchemeSelector | undefined;
|
|
851
851
|
readonly defaultServiceNames: ServiceNameCollection;
|
|
852
852
|
extendedProtectionPolicy: ExtendedProtectionPolicy;
|
|
853
|
-
extendedProtectionSelectorDelegate: HttpListener_ExtendedProtectionSelector;
|
|
853
|
+
extendedProtectionSelectorDelegate: HttpListener_ExtendedProtectionSelector | undefined;
|
|
854
854
|
ignoreWriteExceptions: boolean;
|
|
855
855
|
readonly isListening: boolean;
|
|
856
856
|
readonly prefixes: HttpListenerPrefixCollection;
|
|
857
|
-
realm: string;
|
|
857
|
+
realm: string | undefined;
|
|
858
858
|
readonly timeoutManager: HttpListenerTimeoutManager;
|
|
859
859
|
unsafeConnectionNtlmAuthentication: boolean;
|
|
860
860
|
abort(): void;
|
|
@@ -897,8 +897,6 @@ export interface __HttpListenerBasicIdentity$views {
|
|
|
897
897
|
As_IIdentity(): System_Security_Principal_Internal.IIdentity$instance;
|
|
898
898
|
}
|
|
899
899
|
|
|
900
|
-
export interface HttpListenerBasicIdentity$instance extends System_Security_Principal_Internal.IIdentity$instance {}
|
|
901
|
-
|
|
902
900
|
export type HttpListenerBasicIdentity = HttpListenerBasicIdentity$instance & __HttpListenerBasicIdentity$views;
|
|
903
901
|
|
|
904
902
|
|
|
@@ -906,10 +904,10 @@ export interface HttpListenerContext$instance {
|
|
|
906
904
|
readonly request: HttpListenerRequest;
|
|
907
905
|
readonly response: HttpListenerResponse;
|
|
908
906
|
readonly user: IPrincipal;
|
|
909
|
-
acceptWebSocketAsync(subProtocol: string): Task_1<HttpListenerWebSocketContext>;
|
|
910
|
-
acceptWebSocketAsync(subProtocol: string, keepAliveInterval: TimeSpan): Task_1<HttpListenerWebSocketContext>;
|
|
911
|
-
acceptWebSocketAsync(subProtocol: string, receiveBufferSize: int, keepAliveInterval: TimeSpan): Task_1<HttpListenerWebSocketContext>;
|
|
912
|
-
acceptWebSocketAsync(subProtocol: string, receiveBufferSize: int, keepAliveInterval: TimeSpan, internalBuffer: ArraySegment_1<System_Internal.Byte>): Task_1<HttpListenerWebSocketContext>;
|
|
907
|
+
acceptWebSocketAsync(subProtocol: string | undefined): Task_1<HttpListenerWebSocketContext>;
|
|
908
|
+
acceptWebSocketAsync(subProtocol: string | undefined, keepAliveInterval: TimeSpan): Task_1<HttpListenerWebSocketContext>;
|
|
909
|
+
acceptWebSocketAsync(subProtocol: string | undefined, receiveBufferSize: int, keepAliveInterval: TimeSpan): Task_1<HttpListenerWebSocketContext>;
|
|
910
|
+
acceptWebSocketAsync(subProtocol: string | undefined, receiveBufferSize: int, keepAliveInterval: TimeSpan, internalBuffer: ArraySegment_1<System_Internal.Byte>): Task_1<HttpListenerWebSocketContext>;
|
|
913
911
|
}
|
|
914
912
|
|
|
915
913
|
|
|
@@ -969,7 +967,7 @@ export type HttpListenerPrefixCollection = HttpListenerPrefixCollection$instance
|
|
|
969
967
|
|
|
970
968
|
|
|
971
969
|
export interface HttpListenerRequest$instance {
|
|
972
|
-
readonly acceptTypes: string[];
|
|
970
|
+
readonly acceptTypes: string[] | undefined;
|
|
973
971
|
readonly clientCertificateError: int;
|
|
974
972
|
readonly contentEncoding: Encoding;
|
|
975
973
|
readonly contentLength64: long;
|
|
@@ -977,7 +975,7 @@ export interface HttpListenerRequest$instance {
|
|
|
977
975
|
readonly cookies: CookieCollection;
|
|
978
976
|
readonly hasEntityBody: boolean;
|
|
979
977
|
readonly headers: NameValueCollection;
|
|
980
|
-
readonly httpMethod: string;
|
|
978
|
+
readonly httpMethod: string | undefined;
|
|
981
979
|
readonly inputStream: Stream;
|
|
982
980
|
readonly isAuthenticated: boolean;
|
|
983
981
|
readonly isLocal: boolean;
|
|
@@ -987,21 +985,21 @@ export interface HttpListenerRequest$instance {
|
|
|
987
985
|
readonly localEndPoint: IPEndPoint;
|
|
988
986
|
readonly protocolVersion: Version;
|
|
989
987
|
readonly queryString: NameValueCollection;
|
|
990
|
-
readonly rawUrl: string;
|
|
988
|
+
readonly rawUrl: string | undefined;
|
|
991
989
|
readonly remoteEndPoint: IPEndPoint;
|
|
992
990
|
readonly requestTraceIdentifier: Guid;
|
|
993
|
-
readonly serviceName: string;
|
|
991
|
+
readonly serviceName: string | undefined;
|
|
994
992
|
readonly transportContext: TransportContext;
|
|
995
|
-
readonly url: Uri;
|
|
996
|
-
readonly urlReferrer: Uri;
|
|
993
|
+
readonly url: Uri | undefined;
|
|
994
|
+
readonly urlReferrer: Uri | undefined;
|
|
997
995
|
readonly userAgent: string;
|
|
998
996
|
readonly userHostAddress: string;
|
|
999
997
|
readonly userHostName: string;
|
|
1000
|
-
readonly userLanguages: string[];
|
|
1001
|
-
beginGetClientCertificate(requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
1002
|
-
endGetClientCertificate(asyncResult: IAsyncResult): X509Certificate2;
|
|
1003
|
-
getClientCertificate(): X509Certificate2;
|
|
1004
|
-
getClientCertificateAsync(): Task_1<X509Certificate2>;
|
|
998
|
+
readonly userLanguages: string[] | undefined;
|
|
999
|
+
beginGetClientCertificate(requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
1000
|
+
endGetClientCertificate(asyncResult: IAsyncResult | undefined): X509Certificate2 | undefined;
|
|
1001
|
+
getClientCertificate(): X509Certificate2 | undefined;
|
|
1002
|
+
getClientCertificateAsync(): Task_1<X509Certificate2 | undefined>;
|
|
1005
1003
|
}
|
|
1006
1004
|
|
|
1007
1005
|
|
|
@@ -1021,7 +1019,7 @@ export interface HttpListenerResponse$instance {
|
|
|
1021
1019
|
keepAlive: boolean;
|
|
1022
1020
|
readonly outputStream: Stream;
|
|
1023
1021
|
protocolVersion: Version;
|
|
1024
|
-
redirectLocation: string;
|
|
1022
|
+
redirectLocation: string | undefined;
|
|
1025
1023
|
sendChunked: boolean;
|
|
1026
1024
|
statusCode: int;
|
|
1027
1025
|
statusDescription: string;
|
|
@@ -1077,10 +1075,10 @@ export interface HttpWebRequest$instance extends WebRequest$instance {
|
|
|
1077
1075
|
automaticDecompression: DecompressionMethods;
|
|
1078
1076
|
clientCertificates: X509CertificateCollection;
|
|
1079
1077
|
connection: string;
|
|
1080
|
-
connectionGroupName: string;
|
|
1078
|
+
connectionGroupName: string | undefined;
|
|
1081
1079
|
contentLength: long;
|
|
1082
1080
|
contentType: string;
|
|
1083
|
-
continueDelegate: HttpContinueDelegate;
|
|
1081
|
+
continueDelegate: HttpContinueDelegate | undefined;
|
|
1084
1082
|
continueTimeout: int;
|
|
1085
1083
|
cookieContainer: CookieContainer;
|
|
1086
1084
|
credentials: ICredentials;
|
|
@@ -1098,12 +1096,12 @@ export interface HttpWebRequest$instance extends WebRequest$instance {
|
|
|
1098
1096
|
pipelined: boolean;
|
|
1099
1097
|
preAuthenticate: boolean;
|
|
1100
1098
|
protocolVersion: Version;
|
|
1101
|
-
proxy: IWebProxy;
|
|
1099
|
+
proxy: IWebProxy | undefined;
|
|
1102
1100
|
readWriteTimeout: int;
|
|
1103
|
-
referer: string;
|
|
1101
|
+
referer: string | undefined;
|
|
1104
1102
|
readonly requestUri: Uri;
|
|
1105
1103
|
sendChunked: boolean;
|
|
1106
|
-
serverCertificateValidationCallback: RemoteCertificateValidationCallback;
|
|
1104
|
+
serverCertificateValidationCallback: RemoteCertificateValidationCallback | undefined;
|
|
1107
1105
|
readonly servicePoint: ServicePoint;
|
|
1108
1106
|
readonly supportsCookieContainer: boolean;
|
|
1109
1107
|
timeout: int;
|
|
@@ -1116,14 +1114,14 @@ export interface HttpWebRequest$instance extends WebRequest$instance {
|
|
|
1116
1114
|
addRange(from_: long, to: long): void;
|
|
1117
1115
|
addRange(range: int): void;
|
|
1118
1116
|
addRange(range: long): void;
|
|
1119
|
-
addRange(rangeSpecifier: string, from_: int, to: int): void;
|
|
1120
|
-
addRange(rangeSpecifier: string, from_: long, to: long): void;
|
|
1121
|
-
addRange(rangeSpecifier: string, range: int): void;
|
|
1122
|
-
addRange(rangeSpecifier: string, range: long): void;
|
|
1123
|
-
beginGetRequestStream(callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
1124
|
-
beginGetResponse(callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
1125
|
-
endGetRequestStream(asyncResult: IAsyncResult): Stream;
|
|
1126
|
-
endGetResponse(asyncResult: IAsyncResult): WebResponse;
|
|
1117
|
+
addRange(rangeSpecifier: string | undefined, from_: int, to: int): void;
|
|
1118
|
+
addRange(rangeSpecifier: string | undefined, from_: long, to: long): void;
|
|
1119
|
+
addRange(rangeSpecifier: string | undefined, range: int): void;
|
|
1120
|
+
addRange(rangeSpecifier: string | undefined, range: long): void;
|
|
1121
|
+
beginGetRequestStream(callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
1122
|
+
beginGetResponse(callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
1123
|
+
endGetRequestStream(asyncResult: IAsyncResult | undefined): Stream;
|
|
1124
|
+
endGetResponse(asyncResult: IAsyncResult | undefined): WebResponse;
|
|
1127
1125
|
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
1128
1126
|
getRequestStream(): Stream;
|
|
1129
1127
|
getResponse(): WebResponse;
|
|
@@ -1134,7 +1132,7 @@ export const HttpWebRequest: {
|
|
|
1134
1132
|
new(): HttpWebRequest;
|
|
1135
1133
|
defaultMaximumResponseHeadersLength: int;
|
|
1136
1134
|
defaultMaximumErrorResponseLength: int;
|
|
1137
|
-
defaultCachePolicy: RequestCachePolicy;
|
|
1135
|
+
defaultCachePolicy: RequestCachePolicy | undefined;
|
|
1138
1136
|
};
|
|
1139
1137
|
|
|
1140
1138
|
|
|
@@ -1148,7 +1146,7 @@ export type HttpWebRequest = HttpWebRequest$instance & __HttpWebRequest$views;
|
|
|
1148
1146
|
|
|
1149
1147
|
|
|
1150
1148
|
export interface HttpWebResponse$instance extends WebResponse$instance {
|
|
1151
|
-
readonly characterSet: string;
|
|
1149
|
+
readonly characterSet: string | undefined;
|
|
1152
1150
|
readonly contentEncoding: string;
|
|
1153
1151
|
readonly contentLength: long;
|
|
1154
1152
|
readonly contentType: string;
|
|
@@ -1201,7 +1199,7 @@ export interface IPAddress$instance {
|
|
|
1201
1199
|
getHashCode(): int;
|
|
1202
1200
|
mapToIPv4(): IPAddress;
|
|
1203
1201
|
mapToIPv6(): IPAddress;
|
|
1204
|
-
toString(): string;
|
|
1202
|
+
toString(): string | undefined;
|
|
1205
1203
|
tryFormat(destination: Span_1<System_Internal.Char>, charsWritten: int): boolean;
|
|
1206
1204
|
tryFormat(utf8Destination: Span_1<System_Internal.Byte>, bytesWritten: int): boolean;
|
|
1207
1205
|
tryWriteBytes(destination: Span_1<System_Internal.Byte>, bytesWritten: int): boolean;
|
|
@@ -1233,8 +1231,8 @@ export const IPAddress: {
|
|
|
1233
1231
|
parse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>): IPAddress;
|
|
1234
1232
|
parse(ipSpan: ReadOnlySpan_1<System_Internal.Char>): IPAddress;
|
|
1235
1233
|
parse(ipString: string): IPAddress;
|
|
1236
|
-
tryParse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, result: IPAddress): boolean;
|
|
1237
|
-
tryParse(ipSpan: ReadOnlySpan_1<System_Internal.Char>, address: IPAddress): boolean;
|
|
1234
|
+
tryParse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, result: IPAddress | undefined): boolean;
|
|
1235
|
+
tryParse(ipSpan: ReadOnlySpan_1<System_Internal.Char>, address: IPAddress | undefined): boolean;
|
|
1238
1236
|
tryParse(ipString: string, address: IPAddress): boolean;
|
|
1239
1237
|
};
|
|
1240
1238
|
|
|
@@ -1275,8 +1273,8 @@ export const IPEndPoint: {
|
|
|
1275
1273
|
readonly maxPort: int;
|
|
1276
1274
|
parse(s: ReadOnlySpan_1<System_Internal.Char>): IPEndPoint;
|
|
1277
1275
|
parse(s: string): IPEndPoint;
|
|
1278
|
-
tryParse(s: ReadOnlySpan_1<System_Internal.Char>, result: IPEndPoint): boolean;
|
|
1279
|
-
tryParse(s: string, result: IPEndPoint): boolean;
|
|
1276
|
+
tryParse(s: ReadOnlySpan_1<System_Internal.Char>, result: IPEndPoint | undefined): boolean;
|
|
1277
|
+
tryParse(s: string, result: IPEndPoint | undefined): boolean;
|
|
1280
1278
|
};
|
|
1281
1279
|
|
|
1282
1280
|
|
|
@@ -1378,9 +1376,9 @@ export type ProtocolViolationException = ProtocolViolationException$instance & _
|
|
|
1378
1376
|
|
|
1379
1377
|
export interface ServicePoint$instance {
|
|
1380
1378
|
readonly address: Uri;
|
|
1381
|
-
bindIPEndPointDelegate: BindIPEndPoint;
|
|
1379
|
+
bindIPEndPointDelegate: BindIPEndPoint | undefined;
|
|
1382
1380
|
readonly certificate: X509Certificate;
|
|
1383
|
-
readonly clientCertificate: X509Certificate;
|
|
1381
|
+
readonly clientCertificate: X509Certificate | undefined;
|
|
1384
1382
|
connectionLeaseTimeout: int;
|
|
1385
1383
|
connectionLimit: int;
|
|
1386
1384
|
readonly connectionName: string;
|
|
@@ -1392,7 +1390,7 @@ export interface ServicePoint$instance {
|
|
|
1392
1390
|
receiveBufferSize: int;
|
|
1393
1391
|
readonly supportsPipelining: boolean;
|
|
1394
1392
|
useNagleAlgorithm: boolean;
|
|
1395
|
-
closeConnectionGroup(connectionGroupName: string): boolean;
|
|
1393
|
+
closeConnectionGroup(connectionGroupName: string | undefined): boolean;
|
|
1396
1394
|
setTcpKeepAlive(enabled: boolean, keepAliveTime: int, keepAliveInterval: int): void;
|
|
1397
1395
|
}
|
|
1398
1396
|
|
|
@@ -1420,13 +1418,13 @@ export const ServicePointManager: {
|
|
|
1420
1418
|
expect100Continue: boolean;
|
|
1421
1419
|
enableDnsRoundRobin: boolean;
|
|
1422
1420
|
dnsRefreshTimeout: int;
|
|
1423
|
-
serverCertificateValidationCallback: RemoteCertificateValidationCallback;
|
|
1421
|
+
serverCertificateValidationCallback: RemoteCertificateValidationCallback | undefined;
|
|
1424
1422
|
reusePort: boolean;
|
|
1425
1423
|
checkCertificateRevocationList: boolean;
|
|
1426
1424
|
readonly encryptionPolicy: EncryptionPolicy;
|
|
1427
|
-
findServicePoint(uriString: string, proxy: IWebProxy): ServicePoint;
|
|
1428
|
-
findServicePoint(address: Uri, proxy: IWebProxy): ServicePoint;
|
|
1429
|
-
findServicePoint(address: Uri): ServicePoint;
|
|
1425
|
+
findServicePoint(uriString: string | undefined, proxy: IWebProxy | undefined): ServicePoint | undefined;
|
|
1426
|
+
findServicePoint(address: Uri | undefined, proxy: IWebProxy | undefined): ServicePoint | undefined;
|
|
1427
|
+
findServicePoint(address: Uri | undefined): ServicePoint | undefined;
|
|
1430
1428
|
setTcpKeepAlive(enabled: boolean, keepAliveTime: int, keepAliveInterval: int): void;
|
|
1431
1429
|
};
|
|
1432
1430
|
|
|
@@ -1441,7 +1439,7 @@ export interface SocketAddress$instance {
|
|
|
1441
1439
|
equals(comparand: unknown): boolean;
|
|
1442
1440
|
equals(comparand: SocketAddress): boolean;
|
|
1443
1441
|
getHashCode(): int;
|
|
1444
|
-
toString(): string;
|
|
1442
|
+
toString(): string | undefined;
|
|
1445
1443
|
}
|
|
1446
1444
|
|
|
1447
1445
|
|
|
@@ -1545,91 +1543,91 @@ export interface WebClient$instance extends Component {
|
|
|
1545
1543
|
encoding: Encoding;
|
|
1546
1544
|
headers: WebHeaderCollection;
|
|
1547
1545
|
readonly isBusy: boolean;
|
|
1548
|
-
proxy: IWebProxy;
|
|
1546
|
+
proxy: IWebProxy | undefined;
|
|
1549
1547
|
queryString: NameValueCollection;
|
|
1550
|
-
readonly responseHeaders: WebHeaderCollection;
|
|
1548
|
+
readonly responseHeaders: WebHeaderCollection | undefined;
|
|
1551
1549
|
useDefaultCredentials: boolean;
|
|
1552
1550
|
cancelAsync(): void;
|
|
1553
1551
|
dispose(): void;
|
|
1554
1552
|
downloadData(address: string): byte[];
|
|
1555
1553
|
downloadData(address: Uri): byte[];
|
|
1556
1554
|
downloadDataAsync(address: Uri): void;
|
|
1557
|
-
downloadDataAsync(address: Uri, userToken: unknown): void;
|
|
1555
|
+
downloadDataAsync(address: Uri, userToken: unknown | undefined): void;
|
|
1558
1556
|
downloadDataTaskAsync(address: string): Task_1<byte[]>;
|
|
1559
1557
|
downloadDataTaskAsync(address: Uri): Task_1<byte[]>;
|
|
1560
1558
|
downloadFile(address: string, fileName: string): void;
|
|
1561
1559
|
downloadFile(address: Uri, fileName: string): void;
|
|
1562
1560
|
downloadFileAsync(address: Uri, fileName: string): void;
|
|
1563
|
-
downloadFileAsync(address: Uri, fileName: string, userToken: unknown): void;
|
|
1561
|
+
downloadFileAsync(address: Uri, fileName: string, userToken: unknown | undefined): void;
|
|
1564
1562
|
downloadFileTaskAsync(address: string, fileName: string): Task;
|
|
1565
1563
|
downloadFileTaskAsync(address: Uri, fileName: string): Task;
|
|
1566
1564
|
downloadString(address: string): string;
|
|
1567
1565
|
downloadString(address: Uri): string;
|
|
1568
1566
|
downloadStringAsync(address: Uri): void;
|
|
1569
|
-
downloadStringAsync(address: Uri, userToken: unknown): void;
|
|
1567
|
+
downloadStringAsync(address: Uri, userToken: unknown | undefined): void;
|
|
1570
1568
|
downloadStringTaskAsync(address: string): Task_1<System_Internal.String>;
|
|
1571
1569
|
downloadStringTaskAsync(address: Uri): Task_1<System_Internal.String>;
|
|
1572
1570
|
openRead(address: string): Stream;
|
|
1573
1571
|
openRead(address: Uri): Stream;
|
|
1574
1572
|
openReadAsync(address: Uri): void;
|
|
1575
|
-
openReadAsync(address: Uri, userToken: unknown): void;
|
|
1573
|
+
openReadAsync(address: Uri, userToken: unknown | undefined): void;
|
|
1576
1574
|
openReadTaskAsync(address: string): Task_1<Stream>;
|
|
1577
1575
|
openReadTaskAsync(address: Uri): Task_1<Stream>;
|
|
1578
1576
|
openWrite(address: string): Stream;
|
|
1579
1577
|
openWrite(address: Uri): Stream;
|
|
1580
|
-
openWrite(address: string, method: string): Stream;
|
|
1581
|
-
openWrite(address: Uri, method: string): Stream;
|
|
1578
|
+
openWrite(address: string, method: string | undefined): Stream;
|
|
1579
|
+
openWrite(address: Uri, method: string | undefined): Stream;
|
|
1582
1580
|
openWriteAsync(address: Uri): void;
|
|
1583
|
-
openWriteAsync(address: Uri, method: string): void;
|
|
1581
|
+
openWriteAsync(address: Uri, method: string | undefined): void;
|
|
1584
1582
|
openWriteAsync(address: Uri, method: string, userToken: unknown): void;
|
|
1585
1583
|
openWriteTaskAsync(address: string): Task_1<Stream>;
|
|
1586
1584
|
openWriteTaskAsync(address: Uri): Task_1<Stream>;
|
|
1587
|
-
openWriteTaskAsync(address: string, method: string): Task_1<Stream>;
|
|
1588
|
-
openWriteTaskAsync(address: Uri, method: string): Task_1<Stream>;
|
|
1585
|
+
openWriteTaskAsync(address: string, method: string | undefined): Task_1<Stream>;
|
|
1586
|
+
openWriteTaskAsync(address: Uri, method: string | undefined): Task_1<Stream>;
|
|
1589
1587
|
uploadData(address: string, data: byte[]): byte[];
|
|
1590
1588
|
uploadData(address: Uri, data: byte[]): byte[];
|
|
1591
|
-
uploadData(address: string, method: string, data: byte[]): byte[];
|
|
1592
|
-
uploadData(address: Uri, method: string, data: byte[]): byte[];
|
|
1589
|
+
uploadData(address: string, method: string | undefined, data: byte[]): byte[];
|
|
1590
|
+
uploadData(address: Uri, method: string | undefined, data: byte[]): byte[];
|
|
1593
1591
|
uploadDataAsync(address: Uri, data: byte[]): void;
|
|
1594
|
-
uploadDataAsync(address: Uri, method: string, data: byte[]): void;
|
|
1595
|
-
uploadDataAsync(address: Uri, method: string, data: byte[], userToken: unknown): void;
|
|
1592
|
+
uploadDataAsync(address: Uri, method: string | undefined, data: byte[]): void;
|
|
1593
|
+
uploadDataAsync(address: Uri, method: string | undefined, data: byte[], userToken: unknown | undefined): void;
|
|
1596
1594
|
uploadDataTaskAsync(address: string, data: byte[]): Task_1<byte[]>;
|
|
1597
1595
|
uploadDataTaskAsync(address: Uri, data: byte[]): Task_1<byte[]>;
|
|
1598
|
-
uploadDataTaskAsync(address: string, method: string, data: byte[]): Task_1<byte[]>;
|
|
1599
|
-
uploadDataTaskAsync(address: Uri, method: string, data: byte[]): Task_1<byte[]>;
|
|
1596
|
+
uploadDataTaskAsync(address: string, method: string | undefined, data: byte[]): Task_1<byte[]>;
|
|
1597
|
+
uploadDataTaskAsync(address: Uri, method: string | undefined, data: byte[]): Task_1<byte[]>;
|
|
1600
1598
|
uploadFile(address: string, fileName: string): byte[];
|
|
1601
1599
|
uploadFile(address: Uri, fileName: string): byte[];
|
|
1602
|
-
uploadFile(address: string, method: string, fileName: string): byte[];
|
|
1603
|
-
uploadFile(address: Uri, method: string, fileName: string): byte[];
|
|
1600
|
+
uploadFile(address: string, method: string | undefined, fileName: string): byte[];
|
|
1601
|
+
uploadFile(address: Uri, method: string | undefined, fileName: string): byte[];
|
|
1604
1602
|
uploadFileAsync(address: Uri, fileName: string): void;
|
|
1605
|
-
uploadFileAsync(address: Uri, method: string, fileName: string): void;
|
|
1606
|
-
uploadFileAsync(address: Uri, method: string, fileName: string, userToken: unknown): void;
|
|
1603
|
+
uploadFileAsync(address: Uri, method: string | undefined, fileName: string): void;
|
|
1604
|
+
uploadFileAsync(address: Uri, method: string | undefined, fileName: string, userToken: unknown | undefined): void;
|
|
1607
1605
|
uploadFileTaskAsync(address: string, fileName: string): Task_1<byte[]>;
|
|
1608
1606
|
uploadFileTaskAsync(address: Uri, fileName: string): Task_1<byte[]>;
|
|
1609
|
-
uploadFileTaskAsync(address: string, method: string, fileName: string): Task_1<byte[]>;
|
|
1610
|
-
uploadFileTaskAsync(address: Uri, method: string, fileName: string): Task_1<byte[]>;
|
|
1607
|
+
uploadFileTaskAsync(address: string, method: string | undefined, fileName: string): Task_1<byte[]>;
|
|
1608
|
+
uploadFileTaskAsync(address: Uri, method: string | undefined, fileName: string): Task_1<byte[]>;
|
|
1611
1609
|
uploadString(address: string, data: string): string;
|
|
1612
1610
|
uploadString(address: Uri, data: string): string;
|
|
1613
|
-
uploadString(address: string, method: string, data: string): string;
|
|
1614
|
-
uploadString(address: Uri, method: string, data: string): string;
|
|
1611
|
+
uploadString(address: string, method: string | undefined, data: string): string;
|
|
1612
|
+
uploadString(address: Uri, method: string | undefined, data: string): string;
|
|
1615
1613
|
uploadStringAsync(address: Uri, data: string): void;
|
|
1616
|
-
uploadStringAsync(address: Uri, method: string, data: string): void;
|
|
1617
|
-
uploadStringAsync(address: Uri, method: string, data: string, userToken: unknown): void;
|
|
1614
|
+
uploadStringAsync(address: Uri, method: string | undefined, data: string): void;
|
|
1615
|
+
uploadStringAsync(address: Uri, method: string | undefined, data: string, userToken: unknown | undefined): void;
|
|
1618
1616
|
uploadStringTaskAsync(address: string, data: string): Task_1<System_Internal.String>;
|
|
1619
1617
|
uploadStringTaskAsync(address: Uri, data: string): Task_1<System_Internal.String>;
|
|
1620
|
-
uploadStringTaskAsync(address: string, method: string, data: string): Task_1<System_Internal.String>;
|
|
1621
|
-
uploadStringTaskAsync(address: Uri, method: string, data: string): Task_1<System_Internal.String>;
|
|
1618
|
+
uploadStringTaskAsync(address: string, method: string | undefined, data: string): Task_1<System_Internal.String>;
|
|
1619
|
+
uploadStringTaskAsync(address: Uri, method: string | undefined, data: string): Task_1<System_Internal.String>;
|
|
1622
1620
|
uploadValues(address: string, data: NameValueCollection): byte[];
|
|
1623
1621
|
uploadValues(address: Uri, data: NameValueCollection): byte[];
|
|
1624
|
-
uploadValues(address: string, method: string, data: NameValueCollection): byte[];
|
|
1625
|
-
uploadValues(address: Uri, method: string, data: NameValueCollection): byte[];
|
|
1622
|
+
uploadValues(address: string, method: string | undefined, data: NameValueCollection): byte[];
|
|
1623
|
+
uploadValues(address: Uri, method: string | undefined, data: NameValueCollection): byte[];
|
|
1626
1624
|
uploadValuesAsync(address: Uri, data: NameValueCollection): void;
|
|
1627
|
-
uploadValuesAsync(address: Uri, method: string, data: NameValueCollection): void;
|
|
1628
|
-
uploadValuesAsync(address: Uri, method: string, data: NameValueCollection, userToken: unknown): void;
|
|
1625
|
+
uploadValuesAsync(address: Uri, method: string | undefined, data: NameValueCollection): void;
|
|
1626
|
+
uploadValuesAsync(address: Uri, method: string | undefined, data: NameValueCollection, userToken: unknown | undefined): void;
|
|
1629
1627
|
uploadValuesTaskAsync(address: string, data: NameValueCollection): Task_1<byte[]>;
|
|
1630
|
-
uploadValuesTaskAsync(address: string, method: string, data: NameValueCollection): Task_1<byte[]>;
|
|
1628
|
+
uploadValuesTaskAsync(address: string, method: string | undefined, data: NameValueCollection): Task_1<byte[]>;
|
|
1631
1629
|
uploadValuesTaskAsync(address: Uri, data: NameValueCollection): Task_1<byte[]>;
|
|
1632
|
-
uploadValuesTaskAsync(address: Uri, method: string, data: NameValueCollection): Task_1<byte[]>;
|
|
1630
|
+
uploadValuesTaskAsync(address: Uri, method: string | undefined, data: NameValueCollection): Task_1<byte[]>;
|
|
1633
1631
|
}
|
|
1634
1632
|
|
|
1635
1633
|
|
|
@@ -1651,16 +1649,16 @@ export type WebClient = WebClient$instance & __WebClient$views;
|
|
|
1651
1649
|
export interface WebException$instance extends InvalidOperationException {
|
|
1652
1650
|
readonly response: WebResponse;
|
|
1653
1651
|
readonly status: WebExceptionStatus;
|
|
1654
|
-
getObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext): void;
|
|
1652
|
+
getObjectData(serializationInfo: SerializationInfo | undefined, streamingContext: StreamingContext): void;
|
|
1655
1653
|
}
|
|
1656
1654
|
|
|
1657
1655
|
|
|
1658
1656
|
export const WebException: {
|
|
1659
1657
|
new(): WebException;
|
|
1660
|
-
new(message: string): WebException;
|
|
1661
|
-
new(message: string, innerException: Exception): WebException;
|
|
1662
|
-
new(message: string, status: WebExceptionStatus): WebException;
|
|
1663
|
-
new(message: string, innerException: Exception, status: WebExceptionStatus, response: WebResponse): WebException;
|
|
1658
|
+
new(message: string | undefined): WebException;
|
|
1659
|
+
new(message: string | undefined, innerException: Exception | undefined): WebException;
|
|
1660
|
+
new(message: string | undefined, status: WebExceptionStatus): WebException;
|
|
1661
|
+
new(message: string | undefined, innerException: Exception | undefined, status: WebExceptionStatus, response: WebResponse | undefined): WebException;
|
|
1664
1662
|
};
|
|
1665
1663
|
|
|
1666
1664
|
|
|
@@ -1672,25 +1670,25 @@ export type WebException = WebException$instance & __WebException$views;
|
|
|
1672
1670
|
|
|
1673
1671
|
|
|
1674
1672
|
export interface WebHeaderCollection$instance extends NameValueCollection {
|
|
1675
|
-
readonly allKeys: string[];
|
|
1673
|
+
readonly allKeys: (string | undefined)[] | string[];
|
|
1676
1674
|
readonly count: int;
|
|
1677
1675
|
readonly keys: NameObjectCollectionBase_KeysCollection;
|
|
1678
1676
|
add(header: HttpResponseHeader, value: string): void;
|
|
1679
|
-
add(name: string, value: string): void;
|
|
1680
|
-
add(c: NameValueCollection): void;
|
|
1677
|
+
add(name: string, value: string | undefined): void;
|
|
1678
|
+
add(c: NameValueCollection | undefined): void;
|
|
1681
1679
|
clear(): void;
|
|
1682
|
-
copyTo(dest: ClrArray, index: int): void;
|
|
1680
|
+
copyTo(dest: ClrArray | undefined, index: int): void;
|
|
1683
1681
|
get_(index: int): string;
|
|
1684
1682
|
get_(name: string): string;
|
|
1685
1683
|
getEnumerator(): IEnumerator;
|
|
1686
1684
|
getKey(index: int): string;
|
|
1687
1685
|
getObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext): void;
|
|
1688
|
-
getValues(index: int): string[];
|
|
1686
|
+
getValues(index: int): string[] | undefined;
|
|
1689
1687
|
getValues(header: string): string[];
|
|
1690
1688
|
onDeserialization(sender: unknown): void;
|
|
1691
1689
|
remove(header: HttpResponseHeader): void;
|
|
1692
1690
|
remove(name: string): void;
|
|
1693
|
-
set_(name: string, value: string): void;
|
|
1691
|
+
set_(name: string, value: string | undefined): void;
|
|
1694
1692
|
set_(header: HttpResponseHeader, value: string): void;
|
|
1695
1693
|
toByteArray(): byte[];
|
|
1696
1694
|
toString(): string;
|
|
@@ -1721,23 +1719,23 @@ export interface WebProxy$instance {
|
|
|
1721
1719
|
bypassProxyOnLocal: boolean;
|
|
1722
1720
|
credentials: ICredentials;
|
|
1723
1721
|
useDefaultCredentials: boolean;
|
|
1724
|
-
getProxy(destination: Uri): Uri;
|
|
1725
|
-
isBypassed(host: Uri): boolean;
|
|
1722
|
+
getProxy(destination: Uri | undefined): Uri | undefined;
|
|
1723
|
+
isBypassed(host: Uri | undefined): boolean;
|
|
1726
1724
|
}
|
|
1727
1725
|
|
|
1728
1726
|
|
|
1729
1727
|
export const WebProxy: {
|
|
1730
1728
|
new(): WebProxy;
|
|
1731
|
-
new(Address: Uri): WebProxy;
|
|
1732
|
-
new(Address: Uri, BypassOnLocal: boolean): WebProxy;
|
|
1733
|
-
new(Address: Uri, BypassOnLocal: boolean, BypassList: string[]): WebProxy;
|
|
1734
|
-
new(Address: Uri, BypassOnLocal: boolean, BypassList: string[], Credentials: ICredentials): WebProxy;
|
|
1735
|
-
new(Host: string, Port: int): WebProxy;
|
|
1736
|
-
new(Address: string): WebProxy;
|
|
1737
|
-
new(Address: string, BypassOnLocal: boolean): WebProxy;
|
|
1738
|
-
new(Address: string, BypassOnLocal: boolean, BypassList: string[]): WebProxy;
|
|
1739
|
-
new(Address: string, BypassOnLocal: boolean, BypassList: string[], Credentials: ICredentials): WebProxy;
|
|
1740
|
-
getDefaultProxy(): WebProxy;
|
|
1729
|
+
new(Address: Uri | undefined): WebProxy;
|
|
1730
|
+
new(Address: Uri | undefined, BypassOnLocal: boolean): WebProxy;
|
|
1731
|
+
new(Address: Uri | undefined, BypassOnLocal: boolean, BypassList: string[] | undefined): WebProxy;
|
|
1732
|
+
new(Address: Uri | undefined, BypassOnLocal: boolean, BypassList: string[] | undefined, Credentials: ICredentials | undefined): WebProxy;
|
|
1733
|
+
new(Host: string | undefined, Port: int): WebProxy;
|
|
1734
|
+
new(Address: string | undefined): WebProxy;
|
|
1735
|
+
new(Address: string | undefined, BypassOnLocal: boolean): WebProxy;
|
|
1736
|
+
new(Address: string | undefined, BypassOnLocal: boolean, BypassList: string[] | undefined): WebProxy;
|
|
1737
|
+
new(Address: string | undefined, BypassOnLocal: boolean, BypassList: string[] | undefined, Credentials: ICredentials | undefined): WebProxy;
|
|
1738
|
+
getDefaultProxy(): WebProxy | undefined;
|
|
1741
1739
|
};
|
|
1742
1740
|
|
|
1743
1741
|
|
|
@@ -1754,7 +1752,7 @@ export type WebProxy = WebProxy$instance & __WebProxy$views;
|
|
|
1754
1752
|
export interface WebRequest$instance extends MarshalByRefObject {
|
|
1755
1753
|
authenticationLevel: AuthenticationLevel;
|
|
1756
1754
|
cachePolicy: RequestCachePolicy;
|
|
1757
|
-
connectionGroupName: string;
|
|
1755
|
+
connectionGroupName: string | undefined;
|
|
1758
1756
|
contentLength: long;
|
|
1759
1757
|
contentType: string;
|
|
1760
1758
|
credentials: ICredentials;
|
|
@@ -1762,7 +1760,7 @@ export interface WebRequest$instance extends MarshalByRefObject {
|
|
|
1762
1760
|
impersonationLevel: TokenImpersonationLevel;
|
|
1763
1761
|
method: string;
|
|
1764
1762
|
preAuthenticate: boolean;
|
|
1765
|
-
proxy: IWebProxy;
|
|
1763
|
+
proxy: IWebProxy | undefined;
|
|
1766
1764
|
readonly requestUri: Uri;
|
|
1767
1765
|
timeout: int;
|
|
1768
1766
|
useDefaultCredentials: boolean;
|
|
@@ -1779,8 +1777,8 @@ export interface WebRequest$instance extends MarshalByRefObject {
|
|
|
1779
1777
|
|
|
1780
1778
|
|
|
1781
1779
|
export const WebRequest: {
|
|
1782
|
-
defaultCachePolicy: RequestCachePolicy;
|
|
1783
|
-
defaultWebProxy: IWebProxy;
|
|
1780
|
+
defaultCachePolicy: RequestCachePolicy | undefined;
|
|
1781
|
+
defaultWebProxy: IWebProxy | undefined;
|
|
1784
1782
|
create(requestUriString: string): WebRequest;
|
|
1785
1783
|
create(requestUri: Uri): WebRequest;
|
|
1786
1784
|
createDefault(requestUri: Uri): WebRequest;
|
|
@@ -1829,7 +1827,7 @@ export type WebResponse = WebResponse$instance & __WebResponse$views;
|
|
|
1829
1827
|
|
|
1830
1828
|
|
|
1831
1829
|
export interface WriteStreamClosedEventArgs$instance extends EventArgs {
|
|
1832
|
-
readonly error: Exception;
|
|
1830
|
+
readonly error: Exception | undefined;
|
|
1833
1831
|
}
|
|
1834
1832
|
|
|
1835
1833
|
|
|
@@ -1841,11 +1839,11 @@ export const WriteStreamClosedEventArgs: {
|
|
|
1841
1839
|
export type WriteStreamClosedEventArgs = WriteStreamClosedEventArgs$instance;
|
|
1842
1840
|
|
|
1843
1841
|
export abstract class Dns$instance {
|
|
1844
|
-
static beginGetHostAddresses(hostNameOrAddress: string, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
1845
|
-
static beginGetHostByName(hostName: string, requestCallback: AsyncCallback, stateObject: unknown): IAsyncResult;
|
|
1846
|
-
static beginGetHostEntry(address: IPAddress, requestCallback: AsyncCallback, stateObject: unknown): IAsyncResult;
|
|
1847
|
-
static beginGetHostEntry(hostNameOrAddress: string, requestCallback: AsyncCallback, stateObject: unknown): IAsyncResult;
|
|
1848
|
-
static beginResolve(hostName: string, requestCallback: AsyncCallback, stateObject: unknown): IAsyncResult;
|
|
1842
|
+
static beginGetHostAddresses(hostNameOrAddress: string, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
1843
|
+
static beginGetHostByName(hostName: string, requestCallback: AsyncCallback | undefined, stateObject: unknown | undefined): IAsyncResult;
|
|
1844
|
+
static beginGetHostEntry(address: IPAddress, requestCallback: AsyncCallback | undefined, stateObject: unknown | undefined): IAsyncResult;
|
|
1845
|
+
static beginGetHostEntry(hostNameOrAddress: string, requestCallback: AsyncCallback | undefined, stateObject: unknown | undefined): IAsyncResult;
|
|
1846
|
+
static beginResolve(hostName: string, requestCallback: AsyncCallback | undefined, stateObject: unknown | undefined): IAsyncResult;
|
|
1849
1847
|
static endGetHostAddresses(asyncResult: IAsyncResult): IPAddress[];
|
|
1850
1848
|
static endGetHostByName(asyncResult: IAsyncResult): IPHostEntry;
|
|
1851
1849
|
static endGetHostEntry(asyncResult: IAsyncResult): IPHostEntry;
|
|
@@ -1929,14 +1927,14 @@ export abstract class WebRequestMethods_Http$instance {
|
|
|
1929
1927
|
export type WebRequestMethods_Http = WebRequestMethods_Http$instance;
|
|
1930
1928
|
|
|
1931
1929
|
export abstract class WebUtility$instance {
|
|
1932
|
-
static htmlDecode(value: string, output: TextWriter): void;
|
|
1933
|
-
static htmlDecode(value: string): string;
|
|
1934
|
-
static htmlEncode(value: string, output: TextWriter): void;
|
|
1935
|
-
static htmlEncode(value: string): string;
|
|
1936
|
-
static urlDecode(encodedValue: string): string;
|
|
1937
|
-
static urlDecodeToBytes(encodedValue: byte[], offset: int, count: int): byte[];
|
|
1938
|
-
static urlEncode(value: string): string;
|
|
1939
|
-
static urlEncodeToBytes(value: byte[], offset: int, count: int): byte[];
|
|
1930
|
+
static htmlDecode(value: string | undefined, output: TextWriter | undefined): void;
|
|
1931
|
+
static htmlDecode(value: string | undefined): string | undefined;
|
|
1932
|
+
static htmlEncode(value: string | undefined, output: TextWriter | undefined): void;
|
|
1933
|
+
static htmlEncode(value: string | undefined): string | undefined;
|
|
1934
|
+
static urlDecode(encodedValue: string | undefined): string | undefined;
|
|
1935
|
+
static urlDecodeToBytes(encodedValue: byte[] | undefined, offset: int, count: int): byte[] | undefined;
|
|
1936
|
+
static urlEncode(value: string | undefined): string | undefined;
|
|
1937
|
+
static urlEncodeToBytes(value: byte[] | undefined, offset: int, count: int): byte[] | undefined;
|
|
1940
1938
|
}
|
|
1941
1939
|
|
|
1942
1940
|
|