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.
|
|
using System; using System.Collections.Generic; using System.Text;
namespace Apewer.Web {
/// <summary>上下文。</summary>
public class MiniContext {
MiniConnection _connection; MiniRequest _request; MiniResponse _response; MiniServer _server;
internal MiniContext(MiniConnection connection) { _connection = connection; _server = connection.Server; _request = new MiniRequest(this); _response = new MiniResponse(this); }
/// <summary>服务器。</summary>
public MiniServer Server { get => _server; }
/// <summary>连接。</summary>
public MiniConnection Connection { get => _connection; }
/// <summary>请求。</summary>
public MiniRequest Request { get => _request; }
/// <summary>响应。</summary>
public MiniResponse Response { get => _response; }
}
}
|