forked from ChilliCream/graphql-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user to pin GraphQL over HTTP transport spec version (ChilliCre…
- Loading branch information
1 parent
f08c2ed
commit 974ec6c
Showing
6 changed files
with
404 additions
and
439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/HotChocolate/AspNetCore/src/AspNetCore/HttpTransportVersion.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace HotChocolate.AspNetCore; | ||
|
||
/// <summary> | ||
/// Represents the GraphQL over HTTP transport version. | ||
/// </summary> | ||
public enum HttpTransportVersion | ||
{ | ||
/// <summary> | ||
/// Represents the latest released transport specification. | ||
/// </summary> | ||
Latest = 0, | ||
|
||
/// <summary> | ||
/// Represents the legacy specification version which will be cut off at 2025-01-01T00:00:00Z. | ||
/// </summary> | ||
Legacy = 1, | ||
|
||
/// <summary> | ||
/// Represents the GraphQL over HTTP spec version with the commit on 2023-01-27. | ||
/// </summary> | ||
Draft20230127 = 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/HotChocolate/AspNetCore/src/AspNetCore/Serialization/HttpResponseFormatterOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using HotChocolate.Execution.Serialization; | ||
|
||
namespace HotChocolate.AspNetCore.Serialization; | ||
|
||
/// <summary> | ||
/// Represents the GraphQL over HTTP formatter options. | ||
/// </summary> | ||
public struct HttpResponseFormatterOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets the GraphQL over HTTP transport version. | ||
/// </summary> | ||
public HttpTransportVersion HttpTransportVersion { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the JSON result formatter options. | ||
/// </summary> | ||
public JsonResultFormatterOptions Json { get; set; } | ||
} |
Oops, something went wrong.