Commit Graph

48 Commits

Author SHA1 Message Date
Ankit Mahato
625254b20f Refactor auth handling in HTTP request functions
Removed redundant AuthModel parameter from sendHttpRequest and streamHttpRequest functions, now using authModel from HttpRequestModel directly. Updated all usages, tests, and related logic to reflect this change. Improved streaming response handling in CollectionStateNotifier and HttpResponseModel.
2025-08-06 02:42:23 +05:30
Ankit Mahato
3bdc5cd5c9 Use media type parser for streamed response
Replaces direct access to 'content-type' header with getMediaTypeFromHeaders for improved MIME type extraction in streamHttpRequest.
2025-08-05 17:18:58 +05:30
Ankit Mahato
304447bf17 Expand streaming response types and subtypes
Added more constants for streaming-related MIME subtypes and updated kStreamingResponseTypes to include additional formats. This improves support for various streaming response types in the networking package.
2025-08-05 16:22:27 +05:30
Ankit Mahato
ae478c85ed Reorder imports in http_response_utils.dart
Moved the 'dart:convert' import to the top of the file for consistency with Dart import conventions.
2025-08-05 15:47:04 +05:30
Ankit Mahato
257b30a1e9 Add authData parameter to HTTP request functions
Introduces an optional AuthModel parameter to sendHttpRequest and streamHttpRequest, allowing authentication handling for HTTP requests. Updates all usages and tests to pass null for the new parameter where authentication is not required.
2025-08-05 12:49:33 +05:30
Ankit Mahato
f4e0f82125 Merge branch 'main' into better_networking/sse 2025-08-05 06:18:21 +05:30
Ankit Mahato
95586abffc Update http_service.dart 2025-08-05 06:04:25 +05:30
Ankit Mahato
32dcbda803 JWT refactor 2025-07-12 23:36:27 +05:30
Ankit Mahato
447cbd4fa7 refactor for digest 2025-07-12 18:04:19 +05:30
Udhay-Adithya
3ca5255e8f fix: pass null for authData in sendHttpRequest for digest authentication to prevent infinite loop when realm and nonce are empty 2025-07-12 00:43:44 +05:30
Udhay-Adithya
38eb527703 feat: update APIAuthType enum to include display types for authentication options 2025-07-07 22:41:25 +05:30
Udhay-Adithya
32855fd2f9 refactor: update authentication handling to check authData instead of enableAuth flag 2025-07-06 12:28:35 +05:30
Udhay-Adithya
c39b8fbe6d refactor: remove unused import and logging from JWT generation 2025-07-06 12:22:58 +05:30
Udhay-Adithya
13bf0549f1 refactor: remove unused digest authentication model import and clean up JWT handling comments 2025-07-06 12:22:04 +05:30
Udhay-Adithya
d5ca13b356 feat: enhance JWT support with private key handling and additional algorithms 2025-07-06 12:19:27 +05:30
Manas Hejmadi
076c7130cb streamHttpRequest: made provision for empty responses 2025-07-04 17:51:59 +05:30
Manas Hejmadi
7a8d1a6f4a http_service: cleanup & streamHttpRequest: simplified 2025-07-04 15:00:06 +05:30
Manas Hejmadi
6bcc855d06 streamHttpRequest: replaced string buffering with chunk_expansion 2025-07-04 02:31:42 +05:30
Manas Hejmadi
2ab6de6a62 Refactored makeStreamedRequest out & replaced sendHttpRequest underlying code 2025-07-03 19:27:49 +05:30
Udhay-Adithya
92af4fba77 feat: add digest authentication 2025-07-03 19:24:56 +05:30
Udhay-Adithya
6c5862cd85 refactor: move authModel to HttpRequestModel 2025-07-03 12:12:18 +05:30
Manas Hejmadi
ce1a463d75 SSE onDone cleanup fix & moved SSEDisplay to its own file 2025-07-03 03:46:50 +05:30
Manas Hejmadi
7b17cb567b streamTextResponse usage removed from streamHttpRequest 2025-07-03 03:13:13 +05:30
Manas Hejmadi
4207974b0e streamHttpRequest: Fixed TCP Length Clipping issue & Refactored Code 2025-07-03 02:27:16 +05:30
Manas Hejmadi
b3169fe775 streamHttpRequest: Added GraphQL Ability 2025-07-03 01:40:30 +05:30
Manas Hejmadi
aef57df466 streamHttpRequest: Major Restructuring & other review changes 2025-07-03 01:01:07 +05:30
Udhay-Adithya
a11c833822 refactor: move auth models to better_networking package 2025-07-02 22:07:47 +05:30
Udhay-Adithya
bf170e1446 feat: remove AuthModel from HttpRequestModel and integrate into HistoryRequestModel and RequestModel 2025-07-01 01:15:55 +05:30
Udhay-Adithya
74c09592bb refactor: rename authData to authModel and update related tests 2025-07-01 01:03:52 +05:30
Udhay-Adithya
d046d50273 refactor: rename ApiAuthModel to AuthModel and authData to authModel 2025-07-01 01:03:52 +05:30
Udhay-Adithya
449e32521e feat: refactor authentication handling to use new ApiAuthModel and update related components 2025-07-01 01:00:59 +05:30
Udhay-Adithya
51fe211ef6 feat: implement authentication handling in HTTP requests 2025-07-01 01:00:59 +05:30
Manas Hejmadi
882b393fdd SSE: Stopping/Cancelling implementation 2025-06-29 17:06:21 +05:30
Manas Hejmadi
97db38a42d Added SSE ability to HTTPS method (fusion) 2025-06-29 16:58:52 +05:30
Ankit Mahato
275200d1fc Add OPTIONS to methods with body list
Included HTTPVerb.options in the kMethodsWithBody constant to ensure OPTIONS requests are recognized as supporting a body.
2025-06-29 06:52:53 +05:30
Ankit Mahato
51cfccb555 Rename private cleanup and error handlers to public
Renamed the internal _cleanup and _handleError functions to cleanup and handleError, respectively, and updated all references.
2025-06-29 06:45:46 +05:30
Ankit Mahato
01ac696c83 Update http_client_manager.dart 2025-06-29 06:18:08 +05:30
Ankit Mahato
9edd43b298 format 2025-06-29 06:16:45 +05:30
Ankit Mahato
028d8c9ce6 Update http_request_utils.dart 2025-06-29 06:15:35 +05:30
Ankit Mahato
39cd3a7e26 Rebuild models 2025-06-29 06:00:21 +05:30
Ankit Mahato
f4e09a54e3 Update map_extensions.dart 2025-06-29 05:54:56 +05:30
Ankit Mahato
156867286d Fix library name in better_networking.dart
Changed the library declaration from 'apidash_core' to 'better_networking' to match the package name.
2025-06-29 05:54:00 +05:30
Ankit Mahato
9b5b6f148e Fix collection package dep 2025-06-29 05:38:45 +05:30
Manas Hejmadi
1b64d05fc5 refactor: formatting action revert 2025-06-22 21:28:43 +05:30
Manas Hejmadi
5e00579790 export better_networking from apidash_core & fix imports 2025-06-19 18:03:11 +05:30
Manas Hejmadi
bb837f4f55 better_networking & apidash_core: fixed package exports 2025-06-18 01:24:51 +05:30
Manas Hejmadi
80d2ca69d7 better_networking: streaming implementation (streamHttpRequest) 2025-06-18 00:21:45 +05:30
Manas Hejmadi
6558a4028e apidash_core: contents moved into better_networking package 2025-06-17 23:55:16 +05:30