Interface IRequest
Assembly: MediaBrowser.Model.dll
public interface IRequest
Properties
Declaration
string AbsoluteUri { get; }
Property Value
Type |
Description |
System.String |
|
The value of the Accept HTTP Request Header
Declaration
Property Value
Type |
Description |
System.String |
|
Declaration
string[] AcceptTypes { get; }
Property Value
Type |
Description |
System.String[] |
|
The value of the Authorization Header used to send the Api Key, null if not available
Declaration
string Authorization { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
CancellationToken CancellationToken { get; }
Property Value
Type |
Description |
System.Threading.CancellationToken |
|
Declaration
string ConnectionId { get; }
Property Value
Type |
Description |
System.String |
|
ContentLength
Declaration
long ContentLength { get; }
Property Value
Type |
Description |
System.Int64 |
|
ContentType
Declaration
string ContentType { get; }
Property Value
Type |
Description |
System.String |
|
The Request DTO, after it has been deserialized.
Declaration
Property Value
Type |
Description |
System.Object |
|
Access to the multi-part/formdata files posted on this request
Declaration
IHttpFile[] Files { get; }
Property Value
Declaration
QueryParamCollection Headers { get; }
Property Value
Declaration
string HttpMethod { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
Stream InputStream { get; }
Property Value
Type |
Description |
System.IO.Stream |
|
Declaration
Property Value
Type |
Description |
System.Boolean |
|
Declaration
bool IsSecureConnection { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
bool IsSocketConnectionLocal { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
Property Value
Type |
Description |
System.String |
|
Declaration
Property Value
Type |
Description |
System.String |
|
Declaration
QueryParamCollection QueryString { get; }
Property Value
Declaration
Property Value
Type |
Description |
System.String |
|
The Remote Ip as reported by X-Forwarded-For, X-Real-IP or Request.UserHostAddress
Declaration
IPAddress RemoteIp { get; }
Property Value
Type |
Description |
System.Net.IPAddress |
|
Declaration
int RemoteSocketPort { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
IResponse Response { get; }
Property Value
ResponseContentType
The expected Response ContentType for this request
Declaration
string ResponseContentType { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
string UserAgent { get; }
Property Value
Type |
Description |
System.String |
|
The Verb / HttpMethod or Action for this request
Declaration
Property Value
Type |
Description |
System.String |
|
The IP Address of the X-Forwarded-For header, null if null or empty
Declaration
string XForwardedFor { get; }
Property Value
Type |
Description |
System.String |
|
The Port number of the X-Forwarded-Port header, null if null or empty
Declaration
int? XForwardedPort { get; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
The http or https scheme of the X-Forwarded-Proto header, null if null or empty
Declaration
string XForwardedProtocol { get; }
Property Value
Type |
Description |
System.String |
|
The value of the X-Real-IP header, null if null or empty
Declaration
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
Task<QueryParamCollection> GetFormData()
Returns
Declaration
Returns
Type |
Description |
System.Boolean |
|
Declaration
Task<bool> IsInLocalNetwork(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Extension Methods