ReportingConfigurationBuilderBase<T>.UseRequestContentType(RequestContentType) Method
Specifies the request content type.
Namespace: DevExpress.XtraReports.Web.Extensions.Services
Assembly: DevExpress.Web.Reporting.v25.1.Common.Services.dll
NuGet Package: DevExpress.Web.Reporting.Common.Services
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| contentType | RequestContentType | An enumeration value that specifies the content type. |
Returns
| Type | Description |
|---|---|
| T | An object that can be used to further configure reporting services. |
Remarks
Reporting controls use the application/x-www-form-urlencoded content type for requests from client to server. To use the application/json content type in ASP.NET Core applications, call the UseRequestContentType() method with the Json value as a parameter:
//...
builder.Services.ConfigureReportingServices(configurator => {
configurator.UseRequestContentType(RequestContentType.Json);
});
//...
If you use the fetchSetup.fetchSettings object to specify headers and their content type, ensure the content type set with the UseRequestContentType() method matches.