|
|
|
@ -155,13 +155,13 @@ namespace WebSocketSharp.Server
|
|
|
|
#region Public Methods
|
|
|
|
#region Public Methods
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Reads a file with the specified <paramref name="path"/> from
|
|
|
|
/// Reads the specified file from the document folder of
|
|
|
|
/// the document folder of the <see cref="HttpServer"/>.
|
|
|
|
/// the <see cref="HttpServer"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>
|
|
|
|
/// <returns>
|
|
|
|
/// <para>
|
|
|
|
/// <para>
|
|
|
|
/// An array of <see cref="byte"/> or <see langword="null"/>
|
|
|
|
/// An array of <see cref="byte"/> or <see langword="null"/>
|
|
|
|
/// if the file could not be read.
|
|
|
|
/// if it fails.
|
|
|
|
/// </para>
|
|
|
|
/// </para>
|
|
|
|
/// <para>
|
|
|
|
/// <para>
|
|
|
|
/// That array receives the contents of the file.
|
|
|
|
/// That array receives the contents of the file.
|
|
|
|
@ -182,7 +182,7 @@ namespace WebSocketSharp.Server
|
|
|
|
/// -or-
|
|
|
|
/// -or-
|
|
|
|
/// </para>
|
|
|
|
/// </para>
|
|
|
|
/// <para>
|
|
|
|
/// <para>
|
|
|
|
/// <paramref name="path"/> is an invalid path.
|
|
|
|
/// <paramref name="path"/> contains "..".
|
|
|
|
/// </para>
|
|
|
|
/// </para>
|
|
|
|
/// </exception>
|
|
|
|
/// </exception>
|
|
|
|
public byte[] ReadFile (string path)
|
|
|
|
public byte[] ReadFile (string path)
|
|
|
|
|