5 types derived from WebRequest
PresentationCore (2)
MS\Internal\IO\Packaging\PseudoWebRequest.cs (1)
34internal class PseudoWebRequest : WebRequest
System\IO\Packaging\PackWebRequest.cs (1)
38public 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)
34internal static void HandleWebRequest(WebRequest request)
MS\Internal\AppModel\CustomCredentialPolicy.cs (1)
76public bool ShouldSendCredential(Uri challengeUri, WebRequest request, NetworkCredential credential, IAuthenticationModule authenticationModule)
MS\Internal\FontCache\FontSource.cs (1)
269WebRequest request = PackWebRequestFactory.CreateWebRequest(_fontUri);
MS\Internal\IO\Packaging\NetStream.cs (2)
78WebRequest originalRequest, WebResponse originalResponse) 1279WebRequest _originalRequest; // Proxy member is Critical
MS\Internal\IO\Packaging\PseudoWebRequest.cs (1)
257_proxy = WebRequest.DefaultWebProxy;
MS\Internal\WpfWebRequestHelper.cs (11)
53internal static WebRequest CreateRequest(Uri uri) 75WebRequest request = WebRequest.Create(uri); 122static internal void ConfigCachePolicy(WebRequest request, bool isRefresh) 176WebRequest request = CreateRequest(uri); 181WebRequest request = CreateRequest(uri); 187WebRequest request = CreateRequest(uri); 191internal static WebResponse GetResponse(WebRequest request) 211internal static WebResponse EndGetResponse(WebRequest request, IAsyncResult ar) 227internal static Stream GetResponseStream(WebRequest request) 236internal static Stream GetResponseStream(WebRequest request, out ContentType contentType)
System\IO\Packaging\PackWebRequest.cs (6)
169WebRequest request = GetRequest(false); 440public WebRequest GetInnerRequest() 442WebRequest request = GetRequest(false); 470private WebRequest GetRequest() 481private WebRequest GetRequest(bool allowPseudoRequest) 573private WebRequest _webRequest; // our "real" webrequest counterpart - may be a PseudoWebRequest
System\IO\Packaging\PackWebRequestFactory.cs (2)
52WebRequest IWebRequestCreate.Create(Uri uri) 139internal static WebRequest CreateWebRequest(Uri uri)
System\IO\Packaging\PackWebResponse.cs (2)
63internal PackWebResponse(Uri uri, Uri innerUri, Uri partName, WebRequest innerRequest) 943private WebRequest _webRequest; // the real web request
System\Windows\Input\CursorConverter.cs (1)
186System.Net.WebRequest request = WpfWebRequestHelper.CreateRequest(finalUri);
System\Windows\Media\Imaging\BitmapDecoder.cs (2)
1221WebRequest request = null; 1232WebRequest request = null;
System\Windows\Media\Imaging\BitmapDownload.cs (1)
55internal WebRequest webRequest;
PresentationFramework (22)
System\Windows\Data\XmlDataProvider.cs (4)
371WebRequest request = PackWebRequestFactory.CreateWebRequest(sourceUri); 555WebRequest request = (WebRequest) arg; 560private 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)
33internal NavigationFailedEventArgs(Uri uri, Object extraData, Object navigator, WebRequest request, WebResponse response, Exception e) 79public WebRequest WebRequest 127WebRequest _request;
System\Windows\Navigation\NavigationService.cs (11)
1542WebRequest newRequest = null; 1867WebRequest request = _request; 2038private bool FireNavigating(Uri source, Object bp, Object navState, WebRequest request) 2107private bool HandleNavigating(Uri source, Object content, Object navState, WebRequest newRequest, bool navigateOnSourceChanged) 2772private WebRequest CreateWebRequest(Uri resolvedDestinationUri, NavigateInfo navInfo) 2774WebRequest request = null; 2907private void GetObjectFromResponse(WebRequest request, WebResponse response, Uri destinationUri, Object navState) 4092private WebRequest _request; 4203internal RequestState(WebRequest request, Uri source, Object navState, Dispatcher callbackDispatcher) 4211internal WebRequest Request 4243private WebRequest _request;
System\Windows\ResourceDictionary.cs (1)
178WebRequest 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!;