Class Request
Sentry HTTP interface
Inherited Members
Namespace: Sentry.Protocol
Assembly: Sentry.Protocol.dll
Syntax
[DataContract]
public class Request
Examples
"request": { "url": "http://absolute.uri/foo", "method": "POST", "data": { "foo": "bar" }, "query_string": "hello=world", "cookies": "foo=bar", "headers": { "Content-Type": "text/html" }, "env": { "REMOTE_ADDR": "192.168.0.1" } }
Properties
| Improve this Doc View SourceCookies
Gets or sets the cookies.
Declaration
[DataMember(Name = "cookies", EmitDefaultValue = false)]
public string Cookies { get; set; }
Property Value
Type | Description |
---|---|
String | The cookies. |
Data
Submitted data in whatever format makes most sense.
Declaration
[DataMember(Name = "data", EmitDefaultValue = false)]
public object Data { get; set; }
Property Value
Type | Description |
---|---|
Object | The request payload. |
Remarks
This data should not be provided by default as it can get quite large
Env
Gets or sets the optional environment data.
Declaration
public IDictionary<string, string> Env { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, String> | The env. |
Remarks
This is where information such as IIS/CGI keys go that are not HTTP headers.
Headers
Gets or sets the headers.
Declaration
public IDictionary<string, string> Headers { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, String> | The headers. |
Remarks
If a header appears multiple times it needs to be merged according to the HTTP standard for header merging.
Method
Gets or sets the method of the request.
Declaration
[DataMember(Name = "method", EmitDefaultValue = false)]
public string Method { get; set; }
Property Value
Type | Description |
---|---|
String | The HTTP method. |
Other
Gets or sets some optional other data.
Declaration
public IDictionary<string, string> Other { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, String> | The other. |
QueryString
Gets or sets the unparsed query string.
Declaration
[DataMember(Name = "query_string", EmitDefaultValue = false)]
public string QueryString { get; set; }
Property Value
Type | Description |
---|---|
String | The query string. |
Url
Gets or sets the full request URL, if available.
Declaration
[DataMember(Name = "url", EmitDefaultValue = false)]
public string Url { get; set; }
Property Value
Type | Description |
---|---|
String | The request URL. |
Methods
| Improve this Doc View SourceClone()
Clones this instance
Declaration
public Request Clone()
Returns
Type | Description |
---|---|
Request |
Remarks
This is a shallow copy. References like Data could hold a mutable, non-thread-safe object.