Class MercadoPagoRequest
Class that contains request data to MercadoPago's APIs.
Inherited Members
Namespace: MercadoPago.Http
Assembly: MercadoPago.dll
Syntax
public class MercadoPagoRequest
Constructors
| Edit this page View SourceMercadoPagoRequest()
Initializes a new instance of the MercadoPagoRequest class.
Declaration
public MercadoPagoRequest()
MercadoPagoRequest(string, HttpMethod, IDictionary<string, string>, string)
Initializes a new instance of the MercadoPagoRequest class.
Declaration
public MercadoPagoRequest(string url, HttpMethod method, IDictionary<string, string> headers, string content)
Parameters
Type | Name | Description |
---|---|---|
string | url | The url of the request. |
HttpMethod | method | The HTTP method of the request. |
IDictionary<string, string> | headers | The headers of the request. |
string | content | The content body of the request as string. |
Properties
| Edit this page View SourceContent
Request body content as JSON string.
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
string |
Headers
HTTP headers.
Declaration
public IDictionary<string, string> Headers { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Method
HttpMethod value that represents the HTTP method. The deafult value is GET.
Declaration
public HttpMethod Method { get; set; }
Property Value
Type | Description |
---|---|
HttpMethod |
Url
Request URL.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceContainsHeader(string)
Receives a string and returns true if the string is a key of the headers
Declaration
public bool ContainsHeader(string header)
Parameters
Type | Name | Description |
---|---|---|
string | header |
Returns
Type | Description |
---|---|
bool |