Class RequestArguments
Represents the most important arguments of an HTTP request.
Inheritance
System.Object
RequestArguments
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Stubbery
Assembly: Stubbery.dll
Syntax
public class RequestArguments
Properties
| Improve this Doc View SourceBody
The stream of the HTTP request body.
Declaration
public Stream Body { get; }
Property Value
Type | Description |
---|---|
System.IO.Stream |
Query
The query string arguments.
Declaration
public dynamic Query { get; }
Property Value
Type | Description |
---|---|
System.Object |
Remarks
The arguments are accessible with their names specified in the query string. For example, if the query string is "?arg1=value1&arg2=value2", we can access the two arguments by retrieving the properties arg1 and arg2.
var arg1 = args.Query.arg1;
var arg2 = args.Query.arg2;
Route
The route arguments.
Declaration
public dynamic Route { get; }
Property Value
Type | Description |
---|---|
System.Object |
Remarks
The arguments are accessible with their names specified in the route template. For example, if the route template is "testroute/{arg1}/path/{arg2}", and we send a request to "testroute/value1/path/value2", we can access the two arguments by retrieving the properties arg1 and arg2.
var arg1 = args.Route.arg1;
var arg2 = args.Route.arg2;