Commit Graph

18 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
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
95586abffc Update http_service.dart 2025-08-05 06:04:25 +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
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
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
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
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