UtilitiesToWebRequest Method (IResourceRequest, HttpWebRequest, CookieContainer)Awesomium.NET 1.7.6Awesomium.NET
Gets an HttpWebRequest equivalent to this IResourceRequest instance.

Namespace: Awesomium.Core
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version: 1.7.6.0
Syntax

public static HttpWebRequest ToWebRequest(
	this IResourceRequest request,
	HttpWebRequest requestToFill,
	CookieContainer cookieContainer
)

Parameters

request
Type: Awesomium.CoreIResourceRequest
The IResourceRequest to convert.
requestToFill
Type: System.NetHttpWebRequest
An HttpWebRequest to fill with the information provided by this IResourceRequest.
Note Note
Note that the RequestUri of the provided HttpWebRequest cannot be changed. Only headers and any upload data will be copied from the provided request.
cookieContainer
Type: System.NetCookieContainer
A CookieContainer to be assigned to the requestToFill or the returned HttpWebRequest instance.

Return Value

Type: HttpWebRequest
An HttpWebRequest equivalent to this IResourceRequest instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IResourceRequest. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions

ExceptionCondition
NullReferenceExceptionIResourceRequest reference not set to an instance of an object.
See Also

Reference