- Add Link controller to WebListener - Replace HttpListener Link tests with WebListener - Update WebListener Documentation - Enable cross-platform multiple Link header tests
22 lines
621 B
C#
22 lines
621 B
C#
using System;
|
|
|
|
namespace mvc.Controllers
|
|
{
|
|
internal static class Constants
|
|
{
|
|
public const string HeaderSeparator = ", ";
|
|
public const string ApplicationJson = "application/json";
|
|
public const string LinkUriTemplate = "<{0}?maxlinks={1}&linknumber={2}&type={3}>; rel=\"{4}\"";
|
|
public const string MalformedUrlLinkHeader = "{url}; foo";
|
|
public const string NoRelLinkHeader = "<url>; foo=\"bar\"";
|
|
public const string NoUrlLinkHeader = "<>; rel=\"next\"";
|
|
|
|
|
|
}
|
|
|
|
internal static class StatusCodes
|
|
{
|
|
public const Int32 ApplicationError = 500;
|
|
}
|
|
}
|