Merge branch 'main' into main

This commit is contained in:
Ankit Mahato
2024-03-15 17:38:26 +05:30
committed by GitHub
2 changed files with 16 additions and 16 deletions

View File

@ -46,12 +46,8 @@ class Codegen {
return DartHttpCodeGen().getCode(rM); return DartHttpCodeGen().getCode(rM);
case CodegenLanguage.dartDio: case CodegenLanguage.dartDio:
return DartDioCodeGen().getCode(rM); return DartDioCodeGen().getCode(rM);
case CodegenLanguage.javaAsyncHttpClient: case CodegenLanguage.goHttp:
return JavaAsyncHttpClientGen().getCode(rM); return GoHttpCodeGen().getCode(rM);
case CodegenLanguage.javaHttpClient:
return JavaHttpClientCodeGen().getCode(rM);
case CodegenLanguage.javaOkHttp:
return JavaOkHttpCodeGen().getCode(rM);
case CodegenLanguage.jsAxios: case CodegenLanguage.jsAxios:
return AxiosCodeGen().getCode(rM); return AxiosCodeGen().getCode(rM);
case CodegenLanguage.jsFetch: case CodegenLanguage.jsFetch:
@ -60,10 +56,16 @@ class Codegen {
return AxiosCodeGen(isNodeJs: true).getCode(rM); return AxiosCodeGen(isNodeJs: true).getCode(rM);
case CodegenLanguage.nodejsFetch: case CodegenLanguage.nodejsFetch:
return FetchCodeGen(isNodeJs: true).getCode(rM); return FetchCodeGen(isNodeJs: true).getCode(rM);
case CodegenLanguage.javaAsyncHttpClient:
return JavaAsyncHttpClientGen().getCode(rM);
case CodegenLanguage.javaHttpClient:
return JavaHttpClientCodeGen().getCode(rM);
case CodegenLanguage.javaOkHttp:
return JavaOkHttpCodeGen().getCode(rM);
case CodegenLanguage.juliaHttp:
return JuliaHttpClientCodeGen().getCode(rM);
case CodegenLanguage.kotlinOkHttp: case CodegenLanguage.kotlinOkHttp:
return KotlinOkHttpCodeGen().getCode(rM); return KotlinOkHttpCodeGen().getCode(rM);
case CodegenLanguage.phpGuzzle:
return PhpGuzzleCodeGen().getCode(rM);
case CodegenLanguage.pythonHttpClient: case CodegenLanguage.pythonHttpClient:
return PythonHttpClientCodeGen() return PythonHttpClientCodeGen()
.getCode(rM, boundary: boundary ?? getNewUuid()); .getCode(rM, boundary: boundary ?? getNewUuid());
@ -75,10 +77,8 @@ class Codegen {
return RustReqwestCodeGen().getCode(rM); return RustReqwestCodeGen().getCode(rM);
case CodegenLanguage.rustUreq: case CodegenLanguage.rustUreq:
return RustUreqCodeGen().getCode(rM, boundary: boundary); return RustUreqCodeGen().getCode(rM, boundary: boundary);
case CodegenLanguage.goHttp: case CodegenLanguage.phpGuzzle:
return GoHttpCodeGen().getCode(rM); return PhpGuzzleCodeGen().getCode(rM);
case CodegenLanguage.juliaHttp:
return JuliaHttpClientCodeGen().getCode(rM);
} }
} }
} }

View File

@ -272,17 +272,17 @@ enum CodegenLanguage {
nodejsAxios("node.js (axios)", "javascript", "js"), nodejsAxios("node.js (axios)", "javascript", "js"),
nodejsFetch("node.js (fetch)", "javascript", "js"), nodejsFetch("node.js (fetch)", "javascript", "js"),
kotlinOkHttp("Kotlin (okhttp3)", "java", "kt"), kotlinOkHttp("Kotlin (okhttp3)", "java", "kt"),
phpGuzzle("PHP (guzzle)", "php", "php"),
pythonHttpClient("Python (http.client)", "python", "py"),
pythonRequests("Python (requests)", "python", "py"), pythonRequests("Python (requests)", "python", "py"),
pythonHttpClient("Python (http.client)", "python", "py"),
rustActix("Rust (Actix Client)", "rust", "rs"), rustActix("Rust (Actix Client)", "rust", "rs"),
rustReqwest("Rust (reqwest)", "rust", "rs"), rustReqwest("Rust (reqwest)", "rust", "rs"),
rustUreq("Rust (ureq)", "rust", "rs"), rustUreq("Rust (ureq)", "rust", "rs"),
javaOkHttp("Java (okhttp3)", "java", 'java'), javaOkHttp("Java (okhttp3)", "java", 'java'),
javaAsyncHttpClient("Java (async-http-client)", "java", "java"), javaAsyncHttpClient("Java (async-http-client)", "java", "java"),
javaHttpClient("Java (HttpClient)", "java", "java"), javaHttpClient("Java (HttpClient)", "java", "java"),
juliaHttp("Julia (HTTP)", "julia", "jl"); juliaHttp("Julia (HTTP)", "julia", "jl"),
phpGuzzle("PHP (guzzle)", "php", "php");
const CodegenLanguage(this.label, this.codeHighlightLang, this.ext); const CodegenLanguage(this.label, this.codeHighlightLang, this.ext);
final String label; final String label;
final String codeHighlightLang; final String codeHighlightLang;