32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using Microsoft.AspNet.HttpFeature;
|
|
|
|
namespace Microsoft.AspNet.Abstractions.Extensions
|
|
{
|
|
public class FakeHttpRequestInfo : IHttpRequestInformation
|
|
{
|
|
public string Protocol { get; set; }
|
|
public string Scheme { get; set; }
|
|
public string Method { get; set; }
|
|
public string PathBase { get; set; }
|
|
public string Path { get; set; }
|
|
public string QueryString { get; set; }
|
|
public IDictionary<string, string[]> Headers { get; set; }
|
|
public Stream Body { get; set; }
|
|
}
|
|
|
|
public class FakeHttpResponseInfo : IHttpResponseInformation
|
|
{
|
|
public int StatusCode { get; set; }
|
|
public string ReasonPhrase { get; set; }
|
|
public IDictionary<string, string[]> Headers { get; set; }
|
|
public Stream Body { get; set; }
|
|
public void OnSendingHeaders(Action<object> callback, object state)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
} |