Merge branch 'foss42:main' into add-feature-oauth-2

This commit is contained in:
Udhay Adithya
2025-08-07 00:32:08 +05:30
committed by GitHub
65 changed files with 2763 additions and 942 deletions

View File

@@ -106,6 +106,15 @@ const kSubTypeYaml = 'yaml';
const kSubTypeXYaml = 'x-yaml';
const kSubTypeYml = 'x-yml';
const kSubTypeXWwwFormUrlencoded = 'x-www-form-urlencoded';
const kSubTypeXNdjson = 'x-ndjson';
const kSubTypeNdjson = 'ndjson';
const kSubTypeJsonSeq = 'json-seq';
const kSubTypeXLdjson = 'x-ldjson';
const kSubTypeLdjson = 'ldjson';
const kSubTypeXJsonStream = 'x-json-stream';
const kSubTypeJsonStream = 'json-stream';
const kSubTypeJsonstream = 'jsonstream';
const kSubTypeStreamJson = 'stream+json';
const kTypeText = 'text';
// text
@@ -118,6 +127,7 @@ const kSubTypePlain = 'plain';
const kSubTypeTextXml = 'xml';
const kSubTypeTextYaml = 'yaml';
const kSubTypeTextYml = 'yml';
const kSubTypeEventStream = 'event-stream';
const kTypeImage = 'image';
//image
@@ -131,6 +141,19 @@ const kSubTypeFormData = "form-data";
const kSubTypeDefaultViewOptions = 'all';
List<String> kStreamingResponseTypes = [
'$kTypeText/$kSubTypeEventStream',
'$kTypeApplication/$kSubTypeXNdjson',
'$kTypeApplication/$kSubTypeNdjson',
'$kTypeApplication/$kSubTypeJsonSeq',
'$kTypeApplication/$kSubTypeXLdjson',
'$kTypeApplication/$kSubTypeLdjson',
'$kTypeApplication/$kSubTypeXJsonStream',
'$kTypeApplication/$kSubTypeJsonStream',
'$kTypeApplication/$kSubTypeJsonstream',
'$kTypeApplication/$kSubTypeStreamJson',
];
enum ContentType {
json("$kTypeApplication/$kSubTypeJson"),
text("$kTypeText/$kSubTypePlain"),