@@ -13,6 +13,10 @@ public static partial class HttpContextServerVariableExtensions
1313 {
1414 public static string GetServerVariable ( this Microsoft . AspNetCore . Http . HttpContext context , string variableName ) { throw null ; }
1515 }
16+ public static partial class HttpRequestExtensions
17+ {
18+ public static bool HasJsonContentType ( this Microsoft . AspNetCore . Http . HttpRequest request ) { throw null ; }
19+ }
1620 public static partial class ResponseExtensions
1721 {
1822 public static void Clear ( this Microsoft . AspNetCore . Http . HttpResponse response ) { }
@@ -127,3 +131,29 @@ public void Set(string name, object value) { }
127131 public void SetList < T > ( string name , System . Collections . Generic . IList < T > values ) { }
128132 }
129133}
134+ namespace Microsoft . AspNetCore . Http . Json
135+ {
136+ public static partial class HttpRequestJsonExtensions
137+ {
138+ [ System . Diagnostics . DebuggerStepThroughAttribute ]
139+ public static System . Threading . Tasks . ValueTask < object ? > ReadFromJsonAsync ( this Microsoft . AspNetCore . Http . HttpRequest request , System . Type type , System . Text . Json . JsonSerializerOptions ? options , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
140+ public static System . Threading . Tasks . ValueTask < object ? > ReadFromJsonAsync ( this Microsoft . AspNetCore . Http . HttpRequest request , System . Type type , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
141+ [ System . Diagnostics . DebuggerStepThroughAttribute ]
142+ public static System . Threading . Tasks . ValueTask < TValue > ReadFromJsonAsync < TValue > ( this Microsoft . AspNetCore . Http . HttpRequest request , System . Text . Json . JsonSerializerOptions ? options , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
143+ public static System . Threading . Tasks . ValueTask < TValue > ReadFromJsonAsync < TValue > ( this Microsoft . AspNetCore . Http . HttpRequest request , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
144+ }
145+ public static partial class HttpResponseJsonExtensions
146+ {
147+ public static System . Threading . Tasks . Task WriteAsJsonAsync ( this Microsoft . AspNetCore . Http . HttpResponse response , object ? value , System . Type type , System . Text . Json . JsonSerializerOptions ? options , string ? contentType , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
148+ public static System . Threading . Tasks . Task WriteAsJsonAsync ( this Microsoft . AspNetCore . Http . HttpResponse response , object ? value , System . Type type , System . Text . Json . JsonSerializerOptions ? options , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
149+ public static System . Threading . Tasks . Task WriteAsJsonAsync ( this Microsoft . AspNetCore . Http . HttpResponse response , object ? value , System . Type type , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
150+ public static System . Threading . Tasks . Task WriteAsJsonAsync < TValue > ( this Microsoft . AspNetCore . Http . HttpResponse response , [ System . Diagnostics . CodeAnalysis . AllowNullAttribute ] TValue value , System . Text . Json . JsonSerializerOptions ? options , string ? contentType , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
151+ public static System . Threading . Tasks . Task WriteAsJsonAsync < TValue > ( this Microsoft . AspNetCore . Http . HttpResponse response , [ System . Diagnostics . CodeAnalysis . AllowNullAttribute ] TValue value , System . Text . Json . JsonSerializerOptions ? options , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
152+ public static System . Threading . Tasks . Task WriteAsJsonAsync < TValue > ( this Microsoft . AspNetCore . Http . HttpResponse response , [ System . Diagnostics . CodeAnalysis . AllowNullAttribute ] TValue value , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
153+ }
154+ public partial class JsonOptions
155+ {
156+ public JsonOptions ( ) { }
157+ public System . Text . Json . JsonSerializerOptions SerializerOptions { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
158+ }
159+ }
0 commit comments