Skip to content

Commit 6077fcd

Browse files
committed
Replace dependency on RequestStream in Request.Body with Stream
Allows swapping out switchover stream behaviour Backport of NancyFx#2512
1 parent 5664e9c commit 6077fcd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Nancy/Request.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public Request(string method, string path, string scheme)
4848
/// <param name="protocolVersion">The HTTP protocol version.</param>
4949
public Request(string method,
5050
Url url,
51-
RequestStream body = null,
51+
Stream body = null,
5252
IDictionary<string, IEnumerable<string>> headers = null,
5353
string ip = null,
5454
byte[] certificate = null,
@@ -149,10 +149,10 @@ public string Path
149149
public dynamic Query { get; set; }
150150

151151
/// <summary>
152-
/// Gets a <see cref="RequestStream"/> that can be used to read the incoming HTTP body
152+
/// Gets a <see cref="Stream"/> that can be used to read the incoming HTTP body
153153
/// </summary>
154-
/// <value>A <see cref="RequestStream"/> object representing the incoming HTTP body.</value>
155-
public RequestStream Body { get; private set; }
154+
/// <value>A <see cref="Stream"/> object representing the incoming HTTP body.</value>
155+
public Stream Body { get; private set; }
156156

157157
/// <summary>
158158
/// Gets the request cookies.

0 commit comments

Comments
 (0)