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