Show / Hide Table of Contents

    Class Request

    Sentry HTTP interface

    Inheritance
    Object
    Request
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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 Source

    Cookies

    Gets or sets the cookies.

    Declaration
    [DataMember(Name = "cookies", EmitDefaultValue = false)]
    public string Cookies { get; set; }
    Property Value
    Type Description
    String

    The cookies.

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    Other

    Gets or sets some optional other data.

    Declaration
    public IDictionary<string, string> Other { get; }
    Property Value
    Type Description
    IDictionary<String, String>

    The other.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 Source

    Clone()

    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.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX