diff --git a/websocket-sharp/Server/HttpRequestEventArgs.cs b/websocket-sharp/Server/HttpRequestEventArgs.cs
index a06ceea3..f355d0a1 100644
--- a/websocket-sharp/Server/HttpRequestEventArgs.cs
+++ b/websocket-sharp/Server/HttpRequestEventArgs.cs
@@ -4,8 +4,8 @@
*
* The MIT License
*
- * Copyright (c) 2012-2013 sta.blockhead
- *
+ * Copyright (c) 2012-2014 sta.blockhead
+ *
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
@@ -15,7 +15,7 @@
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -29,24 +29,40 @@
using System;
using WebSocketSharp.Net;
-namespace WebSocketSharp.Server {
-
+namespace WebSocketSharp.Server
+{
///
- /// Contains the event data associated with the HTTP request events of the class.
+ /// Contains the event data associated with an HTTP request event that
+ /// the emits.
///
///
- /// An HTTP request event occurs when a instance receives an HTTP request.
- /// If you want to get the HTTP request objects, you should access the property.
- /// If you want to get the HTTP response objects to send, you should access the property.
+ ///
+ /// An HTTP request event occurs when the receives an HTTP request.
+ ///
+ ///
+ /// If you would like to get the request data, you should access
+ /// the property.
+ ///
+ ///
+ /// And if you would like to get the data used to return a response, you should access
+ /// the property.
+ ///
///
public class HttpRequestEventArgs : EventArgs
{
+ #region Private Fields
+
+ private HttpListenerRequest _request;
+ private HttpListenerResponse _response;
+
+ #endregion
+
#region Internal Constructors
- internal HttpRequestEventArgs(HttpListenerContext context)
+ internal HttpRequestEventArgs (HttpListenerContext context)
{
- Request = context.Request;
- Response = context.Response;
+ _request = context.Request;
+ _response = context.Response;
}
#endregion
@@ -54,20 +70,29 @@ namespace WebSocketSharp.Server {
#region Public Properties
///
- /// Gets the HTTP request objects sent from a client.
+ /// Gets the that represents the HTTP request sent from
+ /// a client.
///
///
- /// A that contains the HTTP request objects.
+ /// A that represents the request.
///
- public HttpListenerRequest Request { get; private set; }
+ public HttpListenerRequest Request {
+ get {
+ return _request;
+ }
+ }
///
- /// Gets the HTTP response objects to send to the client in response to the client's request.
+ /// Gets the used to return an HTTP response to the client.
///
///
- /// A that contains the HTTP response objects.
+ /// A used to return a response.
///
- public HttpListenerResponse Response { get; private set; }
+ public HttpListenerResponse Response {
+ get {
+ return _response;
+ }
+ }
#endregion
}