12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- using System;
- using System.Collections.Specialized;
- using System.IO;
- using System.Net;
- using System.Text;
- namespace WebDAVSharp.Server.Adapters
- {
- /// <summary>
- /// This is an interface-version of the parts of
- /// <see cref="HttpListenerRequest" /> that
- /// the
- /// <see cref="WebDavServer" /> requires to operator.
- /// </summary>
- /// <remarks>
- /// The main purpose of this interface is to facilitate unit-testing.
- /// </remarks>
- public interface IHttpListenerRequest : IAdapter<HttpListenerRequest>
- {
- /// <summary>
- /// Gets the client IP address and port number from which the request originated.
- /// </summary>
- /// <value>
- /// The remote end point.
- /// </value>
- IPEndPoint RemoteEndPoint { get; }
- /// <summary>
- /// Gets the <see cref="Uri" /> object requested by the client.
- /// </summary>
- /// <value>
- /// The URL.
- /// </value>
- Uri Url { get; }
- /// <summary>
- /// Gets the HTTP method specified by the client.
- /// </summary>
- /// <value>
- /// The HTTP method.
- /// </value>
- string HttpMethod { get; }
- /// <summary>
- /// Gets the collection of header name/value pairs sent in the request.
- /// </summary>
- /// <value>
- /// The headers.
- /// </value>
- NameValueCollection Headers { get; }
- /// <summary>
- /// Gets a <see cref="Stream" /> that contains the body data sent by the client.
- /// </summary>
- /// <value>
- /// The input stream.
- /// </value>
- Stream InputStream { get; }
- /// <summary>
- /// Gets the content <see cref="Encoding" /> that can be used with data sent with the request.
- /// </summary>
- /// <value>
- /// The content encoding.
- /// </value>
- Encoding ContentEncoding { get; }
- /// <summary>
- /// Gets the length of the body data included in the request.
- /// </summary>
- /// <value>
- /// The content length64.
- /// </value>
- long ContentLength64 { get; }
- }
- }
|