5 types derived from WebRequest
PresentationCore (2)
MS\Internal\IO\Packaging\PseudoWebRequest.cs (1)
27
internal class PseudoWebRequest :
WebRequest
System\IO\Packaging\PackWebRequest.cs (1)
32
public sealed class PackWebRequest :
WebRequest
System.Net.Requests (3)
System\Net\FileWebRequest.cs (1)
14
public class FileWebRequest :
WebRequest
, ISerializable
System\Net\FtpWebRequest.cs (1)
185
public sealed class FtpWebRequest :
WebRequest
System\Net\HttpWebRequest.cs (1)
31
public class HttpWebRequest :
WebRequest
, ISerializable
146 references to WebRequest
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (2)
424
HttpWebRequest request = (HttpWebRequest)
WebRequest
.Create(location);
849
internal AsyncMetadataLocationRetriever(
WebRequest
request, long maxMessageSize, XmlDictionaryReaderQuotas readerQuotas, TimeoutHelper timeoutHelper, AsyncCallback callback, object state)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
ResponseHeaderTests.cs (6)
54
WebRequest
request =
WebRequest
.Create(address);
79
WebRequest
request =
WebRequest
.Create(address);
104
WebRequest
request =
WebRequest
.Create(address);
Microsoft.ML.Core (2)
Utilities\ResourceManagerUtils.cs (2)
313
var
request =
WebRequest
.Create(url);
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Devices\WebClientExtended.vb (2)
53
Protected Overrides Function GetWebRequest(address As Uri) As
WebRequest
54
Dim request As
WebRequest
= MyBase.GetWebRequest(address)
netstandard (1)
netstandard.cs (1)
1305
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
WebRequest
))]
PresentationCore (31)
MS\Internal\AppModel\CookieHandler.cs (1)
28
internal static void HandleWebRequest(
WebRequest
request)
MS\Internal\AppModel\CustomCredentialPolicy.cs (1)
73
public bool ShouldSendCredential(Uri challengeUri,
WebRequest
request, NetworkCredential credential, IAuthenticationModule authenticationModule)
MS\Internal\FontCache\FontSource.cs (1)
259
WebRequest
request = PackWebRequestFactory.CreateWebRequest(_fontUri);
MS\Internal\IO\Packaging\NetStream.cs (2)
72
WebRequest
originalRequest, WebResponse originalResponse)
1266
WebRequest
_originalRequest; // Proxy member is Critical
MS\Internal\IO\Packaging\PseudoWebRequest.cs (1)
250
_proxy =
WebRequest
.DefaultWebProxy;
MS\Internal\WpfWebRequestHelper.cs (11)
44
internal static
WebRequest
CreateRequest(Uri uri)
66
WebRequest
request =
WebRequest
.Create(uri);
108
static internal void ConfigCachePolicy(
WebRequest
request, bool isRefresh)
162
WebRequest
request = CreateRequest(uri);
167
WebRequest
request = CreateRequest(uri);
173
WebRequest
request = CreateRequest(uri);
177
internal static WebResponse GetResponse(
WebRequest
request)
197
internal static WebResponse EndGetResponse(
WebRequest
request, IAsyncResult ar)
213
internal static Stream GetResponseStream(
WebRequest
request)
222
internal static Stream GetResponseStream(
WebRequest
request, out ContentType contentType)
System\IO\Packaging\PackWebRequest.cs (6)
163
WebRequest
request = GetRequest(false);
434
public
WebRequest
GetInnerRequest()
436
WebRequest
request = GetRequest(false);
464
private
WebRequest
GetRequest()
475
private
WebRequest
GetRequest(bool allowPseudoRequest)
567
private
WebRequest
_webRequest; // our "real" webrequest counterpart - may be a PseudoWebRequest
System\IO\Packaging\PackWebRequestFactory.cs (2)
49
WebRequest
IWebRequestCreate.Create(Uri uri)
136
internal static
WebRequest
CreateWebRequest(Uri uri)
System\IO\Packaging\PackWebResponse.cs (2)
54
internal PackWebResponse(Uri uri, Uri innerUri, Uri partName,
WebRequest
innerRequest)
925
private
WebRequest
_webRequest; // the real web request
System\Windows\Input\CursorConverter.cs (1)
182
System.Net.
WebRequest
request = WpfWebRequestHelper.CreateRequest(finalUri);
System\Windows\Media\Imaging\BitmapDecoder.cs (2)
1193
WebRequest
request = null;
1204
WebRequest
request = null;
System\Windows\Media\Imaging\BitmapDownload.cs (1)
35
internal
WebRequest
webRequest;
PresentationFramework (22)
System\Windows\Data\XmlDataProvider.cs (4)
365
WebRequest
request = PackWebRequestFactory.CreateWebRequest(sourceUri);
545
WebRequest
request = (
WebRequest
) arg;
550
private void CreateDocFromExternalSource(
WebRequest
request)
System\Windows\Navigation\NavigatingCancelEventArgs.cs (3)
37
WebRequest
request, object Navigator, bool isNavInitiator)
122
public
WebRequest
WebRequest
166
private
WebRequest
_webRequest;
System\Windows\Navigation\NavigationFailedEventArgs.cs (3)
32
internal NavigationFailedEventArgs(Uri uri, Object extraData, Object navigator,
WebRequest
request, WebResponse response, Exception e)
78
public
WebRequest
WebRequest
126
WebRequest
_request;
System\Windows\Navigation\NavigationService.cs (11)
1503
WebRequest
newRequest = null;
1820
WebRequest
request = _request;
1986
private bool FireNavigating(Uri source, Object bp, Object navState,
WebRequest
request)
2052
private bool HandleNavigating(Uri source, Object content, Object navState,
WebRequest
newRequest, bool navigateOnSourceChanged)
2710
private
WebRequest
CreateWebRequest(Uri resolvedDestinationUri, NavigateInfo navInfo)
2712
WebRequest
request = null;
2845
private void GetObjectFromResponse(
WebRequest
request, WebResponse response, Uri destinationUri, Object navState)
4024
private
WebRequest
_request;
4135
internal RequestState(
WebRequest
request, Uri source, Object navState, Dispatcher callbackDispatcher)
4143
internal
WebRequest
Request
4175
private
WebRequest
_request;
System\Windows\ResourceDictionary.cs (1)
168
WebRequest
request = WpfWebRequestHelper.CreateRequest(uri);
System (1)
src\libraries\shims\System\ref\System.cs (1)
797
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
WebRequest
))]
System.Net (1)
System.Net.cs (1)
54
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
WebRequest
))]
System.Net.Requests (34)
System\Net\AuthenticationManager.cs (2)
18
public static Authorization? Authenticate(string challenge,
WebRequest
request, ICredentials credentials) =>
21
public static Authorization? PreAuthenticate(
WebRequest
request, ICredentials credentials) =>
System\Net\CommandStream.cs (5)
28
protected
WebRequest
? _request;
86
WebRequest
? webRequest = _request;
110
internal Stream? SubmitRequest(
WebRequest
request, bool isAsync, bool readInitalResponseOnConnect)
128
protected virtual PipelineEntry[]? BuildCommandsList(
WebRequest
request)
148
protected void InitCommandPipeline(
WebRequest
? request, PipelineEntry[]? commands, bool isAsync)
System\Net\FileWebRequest.cs (1)
307
public
WebRequest
Create(Uri uri) => new FileWebRequest(uri);
System\Net\FtpControlStream.cs (1)
478
protected override PipelineEntry[] BuildCommandsList(
WebRequest
req)
System\Net\FtpWebRequest.cs (2)
245
return
WebRequest
.DefaultCachePolicy;
1711
public
WebRequest
Create(Uri uri)
System\Net\GlobalProxySelection.cs (2)
15
get =>
WebRequest
.DefaultWebProxy ?? GetEmptyWebProxy();
16
set =>
WebRequest
.DefaultWebProxy = value;
System\Net\HttpWebRequest.cs (3)
46
private IWebProxy? _proxy =
WebRequest
.DefaultWebProxy;
62
private int _timeout =
WebRequest
.DefaultTimeoutMilliseconds;
1393
return
WebRequest
.DefaultCachePolicy;
System\Net\IAuthenticationModule.cs (2)
8
Authorization? Authenticate(string challenge,
WebRequest
request, ICredentials credentials);
9
Authorization? PreAuthenticate(
WebRequest
request, ICredentials credentials);
System\Net\ICredentialPolicy.cs (1)
8
bool ShouldSendCredential(Uri challengeUri,
WebRequest
request, NetworkCredential credential, IAuthenticationModule authenticationModule);
System\Net\IWebRequestCreate.cs (4)
8
/// The <see cref='System.Net.IWebRequestCreate'/> interface is used by the <see cref='System.Net.
WebRequest
'/>
9
/// class to create <see cref='System.Net.
WebRequest
'/>
17
/// Creates a <see cref='System.Net.
WebRequest
'/>
21
WebRequest
Create(Uri uri);
System\Net\WebRequest.cs (10)
75
private static
WebRequest
Create(Uri requestUri, bool useUriBase)
133
WebRequest
webRequest = Current!.Creator.Create(requestUri);
152
public static
WebRequest
Create(string requestUriString)
170
public static
WebRequest
Create(Uri requestUri)
189
public static
WebRequest
CreateDefault(Uri requestUri)
328
public
WebRequest
Create(Uri Uri)
524
(callback, state) => ((
WebRequest
)state!).BeginGetRequestStream(callback, state),
525
iar => ((
WebRequest
)iar.AsyncState!).EndGetRequestStream(iar),
535
(callback, state) => ((
WebRequest
)state!).BeginGetResponse(callback, state),
536
iar => ((
WebRequest
)iar.AsyncState!).EndGetResponse(iar),
System\Net\WebResponse.cs (1)
109
/// for reading data from the resource referenced in the <see cref='System.Net.
WebRequest
'/>
System.Net.WebClient (40)
System\Net\WebClient.cs (40)
32
private
WebRequest
? _webRequest;
206
get { return _proxySet ? _proxy :
WebRequest
.DefaultWebProxy; }
218
protected virtual
WebRequest
GetWebRequest(Uri address)
221
WebRequest
request =
WebRequest
.Create(address);
254
protected virtual WebResponse GetWebResponse(
WebRequest
request)
261
protected virtual WebResponse GetWebResponse(
WebRequest
request, IAsyncResult result)
268
private async Task<WebResponse> GetWebResponseTaskAsync(
WebRequest
request)
289
WebRequest
request;
298
private byte[] DownloadDataInternal(Uri address, out
WebRequest
request)
300
WebRequest
? tmpRequest = null;
327
WebRequest
? request = null;
365
WebRequest
? request = null;
400
WebRequest
? request = null;
442
WebRequest
request;
451
private byte[] UploadDataInternal(Uri address, string method, byte[] data, out
WebRequest
request)
453
WebRequest
? tmpRequest = null;
564
WebRequest
? request = null;
634
WebRequest
? request = null;
674
WebRequest
request;
695
WebRequest
request;
705
private static void AbortRequest(
WebRequest
? request)
711
private void CopyHeadersTo(
WebRequest
request)
826
private byte[]? DownloadBits(
WebRequest
request, Stream writeStream)
868
WebRequest
request, Stream writeStream,
944
WebRequest
request, FileStream? readStream, byte[] buffer, int chunkSize,
1005
WebRequest
request, FileStream? readStream, byte[] buffer, int chunkSize,
1088
private string GetStringUsingEncoding(
WebRequest
request, byte[] data)
1200
WebRequest
request = _webRequest = GetWebRequest(GetUri(address));
1241
WebRequest
request = _webRequest = GetWebRequest(GetUri(address));
1297
WebRequest
request = _webRequest = GetWebRequest(GetUri(address));
1323
WebRequest
request = _webRequest = GetWebRequest(GetUri(address));
1352
WebRequest
request = _webRequest = GetWebRequest(GetUri(address));
1381
WebRequest
request = _webRequest = GetWebRequest(GetUri(address));
1429
WebRequest
request = _webRequest = GetWebRequest(GetUri(address));
1472
WebRequest
request = _webRequest = GetWebRequest(uri);
1505
WebRequest
request = _webRequest = GetWebRequest(GetUri(address));
1531
WebRequest
? request = _webRequest;
1849
private readonly
WebRequest
_request;
1852
public WebClientWriteStream(Stream stream,
WebRequest
request, WebClient webClient) : base(stream)
System.Windows.Forms (4)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (4)
594
WebRequest
req =
WebRequest
.Create(CalculateUri(_imageLocation!));
657
WebRequest
req = (
WebRequest
)result.AsyncState!;