C# Класс Crowbar.HttpPayload

Defines an HTTP payload.
Наследование: IHttpPayload
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ExtractQueryString string

Открытые методы

Метод Описание
AjaxRequest ( ) : HttpPayload

Adds a header indicating that this is an AJAX request.

Body ( string body, string contentType = "application/octet-stream" ) : HttpPayload

Adds a body to the request.

Cookie ( System.Web.HttpCookie cookie ) : HttpPayload

Adds a cookie to the request.

FormValue ( string key, string value ) : HttpPayload

Adds a form value to the request.

Header ( string name, string value ) : HttpPayload

Adds a header to the request.

HttpPayload ( string method ) : System

Creates an instance of HttpPayload.

HttpRequest ( ) : HttpPayload

Configures the request to be sent over HTTP.

HttpsRequest ( ) : HttpPayload

Configures the request to be sent over HTTPS.

QueryString ( string key, string value ) : HttpPayload

Adds a query string entry.

Приватные методы

Метод Описание
ExtractQueryString ( string path ) : string

Описание методов

AjaxRequest() публичный Метод

Adds a header indicating that this is an AJAX request.
public AjaxRequest ( ) : HttpPayload
Результат HttpPayload

Body() публичный Метод

Adds a body to the request.
public Body ( string body, string contentType = "application/octet-stream" ) : HttpPayload
body string A string that should be used as the request body.
contentType string The content type.
Результат HttpPayload

Cookie() публичный Метод

Adds a cookie to the request.
public Cookie ( System.Web.HttpCookie cookie ) : HttpPayload
cookie System.Web.HttpCookie The cookie that should be added.
Результат HttpPayload

FormValue() публичный Метод

Adds a form value to the request.
public FormValue ( string key, string value ) : HttpPayload
key string The name of the form element.
value string The value of the form element.
Результат HttpPayload

Header() публичный Метод

Adds a header to the request.
public Header ( string name, string value ) : HttpPayload
name string The name of the header.
value string The name of the value.
Результат HttpPayload

HttpPayload() публичный Метод

Creates an instance of HttpPayload.
public HttpPayload ( string method ) : System
method string The HTTP method.
Результат System

HttpRequest() публичный Метод

Configures the request to be sent over HTTP.
public HttpRequest ( ) : HttpPayload
Результат HttpPayload

HttpsRequest() публичный Метод

Configures the request to be sent over HTTPS.
public HttpsRequest ( ) : HttpPayload
Результат HttpPayload

QueryString() публичный Метод

Adds a query string entry.
public QueryString ( string key, string value ) : HttpPayload
key string The name of the entry.
value string The value of the entry.
Результат HttpPayload