Method | Description | |
---|---|---|
AddAcceptHeader ( AcceptHeader acceptHeader ) : |
Helper method for adding an Accept header to the request.
|
|
AddBody ( string bodyString ) : |
The request body as a string.
|
|
AddContentType ( ContentType contentType ) : |
Helper method for adding a content type to the request.
|
|
AddFormParameter ( string key, string value ) : |
|
|
AddHeader ( string key, string value ) : |
Add a header to the request.
|
|
AddQueryStringParameter ( string key, string value ) : |
Adds a query string parameter to the request url.
|
|
Create ( ) : WebTestRequest |
Creates a WebTestRequest using the properties and values of the configured WebApiRequest.
|
|
SetCertificationValidation ( bool validationResult ) : |
Helper method for overriding the certificate validation callback result.
|
|
Url ( string url ) : |
Static method for constructing a new WebApiRequest.
|
|
WithVerb ( Verb httpVerb ) : |
Sets the http verb to be used in the request.
|
Method | Description | |
---|---|---|
WebApiRequest ( string url ) : System |
Method | Description | |
---|---|---|
AddRequestBody ( WebTestRequest request ) : void | ||
CreateRequest ( String requestUrl ) : WebTestRequest | ||
SetRequestHeaders ( WebTestRequest request ) : void |
public AddAcceptHeader ( AcceptHeader acceptHeader ) : |
||
acceptHeader | AcceptHeader | The |
return |
public AddBody ( string bodyString ) : |
||
bodyString | string | The string to be used for the request body. |
return |
public AddContentType ( ContentType contentType ) : |
||
contentType | ContentType | The |
return |
public AddFormParameter ( string key, string value ) : |
||
key | string | |
value | string | |
return |
public AddHeader ( string key, string value ) : |
||
key | string | The key of the header. |
value | string | The value of the header. |
return |
public AddQueryStringParameter ( string key, string value ) : |
||
key | string | The key of the querystring parameter. |
value | string | The value of the querystring parameter. |
return |
public SetCertificationValidation ( bool validationResult ) : |
||
validationResult | bool | the value to return on the certificate validation callback. |
return |
public static Url ( string url ) : |
||
url | string | The url. Zero indexed placeholders can be used to tokenise url, exactly like using string.Format. |
return |
protected WebApiRequest ( string url ) : System | ||
url | string | |
return | System |
public WithVerb ( Verb httpVerb ) : |
||
httpVerb | Verb | The |
return |