Working on ServeMultiPage and ServeSinglePage to help make it easier to serve a website using this library.

This commit is contained in:
MattMo 2023-06-28 16:35:34 -07:00
parent ac2f63229c
commit 8467251a17

View File

@ -497,5 +497,25 @@ namespace MontoyaTech.Rest.Net
{
return response.WithStatus(HttpStatusCode.BadRequest).WithText($"{fieldName} in request is out of range.");
}
/// <summary>
/// Sets the response to serve a file in the context of a multi page application.
/// </summary>
/// <param name="response"></param>
/// <param name="request"></param>
/// <returns></returns>
public static HttpListenerResponse ServeMultiPage(this HttpListenerResponse response, HttpListenerRequest request)
{
}
/// <summary>
/// Sets the response to serve a file in the context of a single page application.
/// </summary>
/// <param name="response"></param>
/// <param name="request"></param>
/// <returns></returns>
public static HttpListenerResponse ServeSinglePage(this HttpListenerResponse response, HttpListenerRequest request)
{
}
}
}