Example #1
0
        bool _streamingrequestbody; // indicates that request body can be streamed by user

        #endregion Fields

        #region Constructors

        internal HttpRequest(HttpServer._Connection connection, HttpMethod method, string rawpath)
        {
            _connection = connection;
            _method     = method;
            _rawpath    = rawpath;
            int iof     = rawpath.IndexOf('?');
            _path       = iof >= 0 ? rawpath.Substring(0, iof) : rawpath;
        }
Example #2
0
 internal HttpResponse(HttpServer._Connection connection, HttpMethod method)
 {
     _connection = connection;
     _method     = method;
     if (_method == HttpMethod.Head || _method == HttpMethod.Delete)
         _headers.ContentLength = 0;
 }
Example #3
0
 internal HttpTransaction(HttpServer server, HttpServer._Connection connection, HttpRequest request, HttpResponse response)
 {
     _server     = server;
     _request    = request;
     _response   = response;
     _connection = connection;
 }