Show / Hide Table of Contents

Class RequestInfo

Properties of a request received by a HttpServer.

Inheritance
System.Object
RequestInfo
Namespace: LaunchDarkly.TestHelpers.HttpTest
Assembly: LaunchDarkly.TestHelpers.dll
Syntax
public sealed class RequestInfo : ValueType

Properties

Body

The request body, or an empty string if none.

Declaration
public string Body { get; set; }
Property Value
Type Description
System.String
Remarks

HttpServer always reads the entire request body before calling a Handler; you can't read the request as a stream.

Headers

The request headers.

Declaration
public NameValueCollection Headers { get; set; }
Property Value
Type Description
System.Collections.Specialized.NameValueCollection

Method

The request method, always in uppercase.

Declaration
public string Method { get; set; }
Property Value
Type Description
System.String

Path

The URL path, not including query string.

Declaration
public string Path { get; set; }
Property Value
Type Description
System.String

Query

The query string, if any (including the "?" prefix), or an empty string; never null.

Declaration
public string Query { get; set; }
Property Value
Type Description
System.String

Uri

The full request URI. This isn't normally useful in tests, but if you're using an HttpServer as a fake proxy server then you can expect this to match the original request URI.

Declaration
public Uri Uri { get; set; }
Property Value
Type Description
System.Uri
In This Article
Back to top Generated by DocFX