Skip to content

Commit

Permalink
added first bits
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Jul 14, 2020
1 parent 271fdf1 commit 7fc3600
Show file tree
Hide file tree
Showing 6 changed files with 942 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/HotChocolate/AspNetCore/src/AspNetCore/ContentType.cs
@@ -0,0 +1,33 @@
using System;

namespace HotChocolate.AspNetCore
{
public static class ContentType
{
private static readonly char[] _jsonChars = new char[]
{
'a',
'p',
'p',
'l',
'i',
'c',
'a',
't',
'i',
'o',
'n',
'/',
'j',
's',
'o',
'n'
};

public const string GraphQL = "application/graphql";

public const string Json = "application/json";

public static ReadOnlySpan<char> JsonSpan() => _jsonChars;
}
}
Expand Up @@ -5,13 +5,15 @@
<AssemblyName>HotChocolate.AspNetCore</AssemblyName>
<RootNamespace>HotChocolate.AspNetCore</RootNamespace>
<Description>Contains the Hot Chocolate GraphQL middleware for ASP .Net core.</Description>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Core\src\Core\HotChocolate.Core.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.0" />
</ItemGroup>

Expand Down

0 comments on commit 7fc3600

Please sign in to comment.