You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.4 KiB
51 lines
1.4 KiB
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Specialized;
|
|
using System.Security.Principal;
|
|
|
|
namespace Microsoft.AspNet.SignalR
|
|
{
|
|
/// <summary>
|
|
/// Represents a SignalR request
|
|
/// </summary>
|
|
public interface IRequest
|
|
{
|
|
/// <summary>
|
|
/// Gets the url for this request.
|
|
/// </summary>
|
|
Uri Url { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the querystring for this request.
|
|
/// </summary>
|
|
NameValueCollection QueryString { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the headers for this request.
|
|
/// </summary>
|
|
NameValueCollection Headers { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the form for this request.
|
|
/// </summary>
|
|
NameValueCollection Form { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the cookies for this request.
|
|
/// </summary>
|
|
IDictionary<string, Cookie> Cookies { get; }
|
|
|
|
/// <summary>
|
|
/// Gets security information for the current HTTP request.
|
|
/// </summary>
|
|
IPrincipal User { get; }
|
|
|
|
/// <summary>
|
|
/// Gets state for the current HTTP request.
|
|
/// </summary>
|
|
IDictionary<string, object> Items { get; }
|
|
}
|
|
}
|