Movatterモバイル変換


[0]ホーム

URL:


CefSharp API Doc
CefSharp API Doc
Namespaces
CefSharp
Request Class
Request Constructor
Request Properties
Request Methods
Click or drag to resizeClick or drag to resize

Request Class

Version 118.6.80
Class used to represent a web request. The methods of this class may be called on any thread.
Inheritance Hierarchy
SystemObject
  CefSharpRequest

Namespace:  CefSharp
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version: 118.6.80.0
Syntax
publicclassRequest :IRequest,IDisposable
publicref classRequest :IRequest,IDisposable

TheRequest type exposes the following members.

Constructors
 NameDescription
Public methodRequest
Initializes a new instance of theRequest class
Top
Properties
 NameDescription
Public propertyFlags
Get/Set request flags, can be used to control caching policy
Public propertyCode exampleHeaders
Header Collection - If dealing with headers that only contain a single value then it's easier to useSetHeaderByName(String, String, Boolean) orGetHeaderByName(String). You cannot modify the referrer using headers, useSetReferrer(String, ReferrerPolicy). NOTE: This collection is a copy of the underlying type, to make changes, take a reference to the collection, make your changes, then reassign the collection.
Public propertyIdentifier
Returns the globally unique identifier for this request or 0 if not specified. Can be used byIRequestHandler implementations in the browser process to track a single request across multiple callbacks.
Public propertyIsDisposed
Gets a value indicating whether the request has been disposed of.
Public propertyIsReadOnly
Returns true if this object is read-only.
Public propertyMethod
Request Method GET/POST etc
Public propertyPostData
Post data
Public propertyReferrerPolicy
Get the referrer policy.
Public propertyReferrerUrl
Get the referrer URL.
Public propertyResourceType
Get the resource type for this request.
Public propertyTransitionType
Get the transition type for this request. Applies to requests that represent a main frame or sub-frame navigation.
Public propertyUrl
Request Url
Top
Methods
 NameDescription
Public methodStatic memberCreate
Create a newIRequest instance
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited fromObject.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited fromObject.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited fromObject.)
Public methodGetHeaderByName
Returns the first header value for name or an empty string if not found. Will not return the Referer value if any. UseHeaders instead if name might have multiple values.
Public methodGetType
Gets theType of the current instance.
(Inherited fromObject.)
Public methodInitializePostData
Initialize a new instance ofIPostData. Make sure to check if thePostData is null before calling otherwise the existing data will be overridden.
Protected methodMemberwiseClone
Creates a shallow copy of the currentObject.
(Inherited fromObject.)
Public methodSetHeaderByName
Set the header name to value. The Referer value cannot be set using this method. UseSetReferrer(String, ReferrerPolicy) instead.
Public methodSetReferrer
Set the referrer URL and policy. If non-empty the referrer URL must be fully qualified with an HTTP or HTTPS scheme component. Any username, password or ref component will be removed.
Public methodToString
Returns a string that represents the current object.
(Inherited fromObject.)
Public methodUnWrap
Used internally to get the underlyingIRequest instance. Unlikely you'll use this yourself.
Top
Extension Methods
 NameDescription
Public Extension MethodGetCharSet
A convenience extension method that extracts the Character set from the content-type header. Can be used in conjuncation withGetBody(IPostDataElement, String)
(Defined byPostDataExtensions.)
Top
See Also

Reference

CefSharp Namespace

https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE


[8]ページ先頭

©2009-2025 Movatter.jp