forked from JSONAPIdotNET/JSONAPI.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIBaseUrlService.cs
More file actions
21 lines (19 loc) · 565 Bytes
/
IBaseUrlService.cs
File metadata and controls
21 lines (19 loc) · 565 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System.Net.Http;
namespace JSONAPI.Http
{
/// <summary>
/// Service allowing you to get the base URL for a request
/// </summary>
public interface IBaseUrlService
{
/// <summary>
/// Gets the base URL for a request
/// </summary>
string GetBaseUrl(HttpRequestMessage requestMessage);
/// <summary>
/// Gets the context path JSONAPI is served under without slashes at the beginning and end.
/// </summary>
/// <returns></returns>
string GetContextPath();
}
}