diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2019-08-09 23:26:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-09 23:26:10 -0700 |
| commit | b5f3f28f41d9ff5e2edbb9a6f9f70accc2f7de05 (patch) | |
| tree | 3da2f4b01f133efc2da1b055bbfffdcdff6a32ac /MediaBrowser.Model/Services/IRequest.cs | |
| parent | f8ad6655fbf2909bd3368ceac4b7947bea41b009 (diff) | |
| parent | 0116190050be69b2ac61d46681f2c7478a1318b9 (diff) | |
Merge pull request #1578 from Bond-009/httpresponse
Replace custom code with Asp.Net Core code
Diffstat (limited to 'MediaBrowser.Model/Services/IRequest.cs')
| -rw-r--r-- | MediaBrowser.Model/Services/IRequest.cs | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/MediaBrowser.Model/Services/IRequest.cs b/MediaBrowser.Model/Services/IRequest.cs index 4f6ddb476..7a4152698 100644 --- a/MediaBrowser.Model/Services/IRequest.cs +++ b/MediaBrowser.Model/Services/IRequest.cs @@ -1,16 +1,13 @@ using System; using System.Collections.Generic; using System.IO; -using System.Threading; -using System.Threading.Tasks; -using MediaBrowser.Model.IO; using Microsoft.AspNetCore.Http; namespace MediaBrowser.Model.Services { public interface IRequest { - IResponse Response { get; } + HttpResponse Response { get; } /// <summary> /// The name of the service being called (e.g. Request DTO Name) @@ -23,11 +20,6 @@ namespace MediaBrowser.Model.Services string Verb { get; } /// <summary> - /// The Request DTO, after it has been deserialized. - /// </summary> - object Dto { get; set; } - - /// <summary> /// The request ContentType /// </summary> string ContentType { get; } @@ -50,8 +42,6 @@ namespace MediaBrowser.Model.Services IQueryCollection QueryString { get; } - Task<QueryParamCollection> GetFormData(); - string RawUrl { get; } string AbsoluteUri { get; } @@ -75,11 +65,6 @@ namespace MediaBrowser.Model.Services long ContentLength { get; } /// <summary> - /// Access to the multi-part/formdata files posted on this request - /// </summary> - IHttpFile[] Files { get; } - - /// <summary> /// The value of the Referrer, null if not available /// </summary> Uri UrlReferrer { get; } @@ -98,25 +83,4 @@ namespace MediaBrowser.Model.Services { IRequest Request { get; set; } } - - public interface IResponse - { - HttpResponse OriginalResponse { get; } - - int StatusCode { get; set; } - - string StatusDescription { get; set; } - - string ContentType { get; set; } - - void AddHeader(string name, string value); - - void Redirect(string url); - - Stream OutputStream { get; } - - Task TransmitFile(string path, long offset, long count, FileShareMode fileShareMode, IFileSystem fileSystem, IStreamHelper streamHelper, CancellationToken cancellationToken); - - bool SendChunked { get; set; } - } } |
