[PR #124] [MERGED] Response Streaming #60

Closed
opened 2025-12-29 08:31:13 +01:00 by adam · 0 comments
Owner

📋 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: masterHead: response-state


📝 Commits (4)

  • 49ce16c Improve some things
  • aee0c61 Merge branch 'master' into response-state
  • 635e156 Cleaned up response streaming
  • 1175e78 Handle 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.

## 📋 Pull Request Information **Original PR:** https://github.com/mountain-loop/yaak/pull/124 **Author:** [@gschier](https://github.com/gschier) **Created:** 10/9/2024 **Status:** ✅ Merged **Merged:** 10/10/2024 **Merged by:** [@gschier](https://github.com/gschier) **Base:** `master` ← **Head:** `response-state` --- ### 📝 Commits (4) - [`49ce16c`](https://github.com/mountain-loop/yaak/commit/49ce16cb27e54281a0b4b725890b8efcdc4e1ff7) Improve some things - [`aee0c61`](https://github.com/mountain-loop/yaak/commit/aee0c61ddf7aaec6e92f3779fd51eeb3bf650374) Merge branch 'master' into response-state - [`635e156`](https://github.com/mountain-loop/yaak/commit/635e1560f0fa7941d0961e6bae7bd383d8db4a58) Cleaned up response streaming - [`1175e78`](https://github.com/mountain-loop/yaak/commit/1175e78e69f3c8851f6072e5fef16d3562fd2e7f) Handle incomplete responses for image/video/etc viewers ### 📊 Changes **20 files changed** (+423 additions, -299 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 08:31:13 +01:00
adam closed this issue 2025-12-29 08:31:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/yaak-mountain-loop#60