Свойство | Type | Description | |
---|---|---|---|
ContentCharset | |||
SupportedHttpMethods | ReadOnlyCollection |
Свойство | Type | Description | |
---|---|---|---|
AttachBody | void | ||
BuildRequest | |||
CreateWebRequest | |||
EndAttachBody | void | ||
FormatForUserAgent | string | ||
GetDefaultETagAction | ETagAction | ||
GetErrorResponseHandlers | IEnumerable |
||
GetReturnMimeType | string | ||
HandleFailedRequest | bool | ||
InternalBeginExecuteRequest | void | ||
InternalEndExecuteRequest | void |
Méthode | Description | |
---|---|---|
CreateRequest ( IService service, IMethod method ) : IRequest |
Given an API method, create the appropriate Request for it.
|
|
ExecuteRequest ( ) : IResponse |
Executes a request given the configuration options supplied.
|
|
ExecuteRequestAsync ( Action |
Executes the request asynchronously, and calls the specified delegate once done.
|
|
HttpMethodHasBody ( string httpMethod ) : bool |
Returns true if this http method can have a body.
|
|
On ( string rpcName ) : IRequest |
The method to call
|
|
Request ( ) : System.IO.Compression | ||
Returning ( ReturnType returnType ) : IRequest |
Sets the type of data that is expected to be returned from the request. Defaults to Json.
|
|
ToString ( ) : string | ||
WithAppName ( string name ) : IRequest |
Sets the Application name on the UserAgent String.
|
|
WithAuthentication ( IAuthenticator authenticator ) : IRequest |
Uses the provided authenticator to add authentication information to this request.
|
|
WithBody ( string body ) : IRequest |
Uses the string provied as the body of the request.
|
|
WithETag ( string etag ) : IRequest |
Adds an ETag to this request.
|
|
WithETagAction ( ETagAction action ) : IRequest |
Sets the ETag-behavior of this request.
|
|
WithFields ( string mask ) : IRequest |
Specifies the partial field mask of this method. The response of this request will only contain the fields specified in this mask.
|
|
WithKey ( string key ) : IRequest |
Adds the developer key to this request.
|
|
WithParameters ( object>.IDictionary |
Adds the parameters to the request.
|
|
WithParameters ( string>.IEnumerable |
Adds the parameters to the request.
|
|
WithParameters ( string parameters ) : IRequest |
Parses the specified querystring and adds these parameters to the request
|
|
WithUserIp ( string userIp ) : IRequest |
IP address of the site where the request originates. Use this if you want to enforce per-user limits.
|
Méthode | Description | |
---|---|---|
AttachBody ( |
||
BuildRequest ( ) : |
||
CreateWebRequest ( Action |
||
EndAttachBody ( IAsyncResult asyncResult ) : void |
Complete the attach-body portion of the request and continue executing the call.
|
|
FormatForUserAgent ( string fragment ) : string | ||
GetDefaultETagAction ( string httpVerb ) : ETagAction | ||
GetErrorResponseHandlers ( ) : IEnumerable |
||
GetReturnMimeType ( ReturnType returnType ) : string | ||
HandleFailedRequest ( AsyncExecutionState state, |
Handles a failed request, and tries to fix it if possible. Can not throw an exception. |
|
InternalBeginExecuteRequest ( AsyncExecutionState state ) : void |
Begins executing a request based upon the current execution state. Does not check preconditions. |
|
InternalEndExecuteRequest ( IAsyncResult asyncResult ) : void |
Ends executing an asynchronous request.
|
public static CreateRequest ( IService service, IMethod method ) : IRequest | ||
service | IService | |
method | IMethod | |
Résultat | IRequest |
public ExecuteRequestAsync ( Action |
||
responseHandler | Action |
The method to call once a response has been received. |
Résultat | void |
public static HttpMethodHasBody ( string httpMethod ) : bool | ||
httpMethod | string | |
Résultat | bool |
public Returning ( ReturnType returnType ) : IRequest | ||
returnType | ReturnType |
/// A |
Résultat | IRequest |
public WithAppName ( string name ) : IRequest | ||
name | string |
/// A |
Résultat | IRequest |
public WithAuthentication ( IAuthenticator authenticator ) : IRequest | ||
authenticator | IAuthenticator | |
Résultat | IRequest |
public WithETagAction ( ETagAction action ) : IRequest | ||
action | ETagAction | |
Résultat | IRequest |
public WithFields ( string mask ) : IRequest | ||
mask | string | Selector specifying which fields to include in a partial response. |
Résultat | IRequest |
public WithParameters ( object>.IDictionary |
||
parameters | object>.IDictionary | |
Résultat | IRequest |
public WithParameters ( string>.IEnumerable |
||
parameters | string>.IEnumerable | |
Résultat | IRequest |
public WithParameters ( string parameters ) : IRequest | ||
parameters | string | |
Résultat | IRequest |
public WithUserIp ( string userIp ) : IRequest | ||
userIp | string | |
Résultat | IRequest |
public static Encoding,System.Text ContentCharset | ||
Résultat |