mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-14 07:43:25 +01:00
[PR #124] [MERGED] Response Streaming #60
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/124
Author: @gschier
Created: 10/9/2024
Status: ✅ Merged
Merged: 10/10/2024
Merged by: @gschier
Base:
master← Head:response-state📝 Commits (4)
49ce16cImprove some thingsaee0c61Merge branch 'master' into response-state635e156Cleaned up response streaming1175e78Handle incomplete responses for image/video/etc viewers📊 Changes
20 files changed (+423 additions, -299 deletions)
View changed files
📝
plugin-runtime-types/src/bindings/models.ts(+3 -1)➕
src-tauri/migrations/20241003134208_response-state.sql(+5 -0)📝
src-tauri/src/http_request.rs(+161 -109)📝
src-tauri/src/lib.rs(+22 -10)📝
src-tauri/yaak_models/bindings/models.ts(+6 -2)📝
src-tauri/yaak_models/src/models.rs(+38 -0)📝
src-tauri/yaak_models/src/queries.rs(+29 -10)📝
src-tauri/yaak_plugin_runtime/bindings/models.ts(+3 -1)📝
src-web/components/ResponsePane.tsx(+41 -26)📝
src-web/components/core/StatusTag.tsx(+15 -11)📝
src-web/components/responseViewers/AudioViewer.tsx(+3 -8)📝
src-web/components/responseViewers/BinaryViewer.tsx(+12 -0)📝
src-web/components/responseViewers/HTMLOrTextViewer.tsx(+21 -11)📝
src-web/components/responseViewers/ImageViewer.tsx(+5 -34)📝
src-web/components/responseViewers/PdfViewer.tsx(+4 -9)📝
src-web/components/responseViewers/TextViewer.tsx(+27 -46)📝
src-web/components/responseViewers/VideoViewer.tsx(+3 -8)📝
src-web/hooks/useResponseBodyText.ts(+2 -1)📝
src-web/lib/contentType.ts(+18 -10)📝
src-web/lib/model_util.ts(+5 -2)📄 Description
This PR adds support for streaming responses. Each chunk will be rendered (if possible for the content type) as soon as it's received.
https://github.com/user-attachments/assets/75196767-b3b8-42fc-bdc4-a45e5aec1797
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.