[PR #4466] [MERGED] feat: support for binary body #4819

Closed
opened 2026-03-17 02:19:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4466
Author: @amk-dev
Created: 10/22/2024
Status: Merged
Merged: 11/26/2024
Merged by: @jamesgeorge007

Base: nextHead: feat/binary-body


📝 Commits (5)

  • c04d6cb feat: send binary content through body
  • 79c7a89 fix: add schema fallback
  • ecfe98b feat: add inspections for agent
  • 6e54ea6 fix: remove adding explicit inspection to url
  • 0452bd8 chore: cleanup

📊 Changes

16 files changed (+261 additions, -22 deletions)

View changed files

📝 packages/hoppscotch-cli/src/interfaces/request.ts (+1 -1)
📝 packages/hoppscotch-cli/src/utils/pre-request.ts (+15 -1)
📝 packages/hoppscotch-common/locales/en.json (+5 -1)
📝 packages/hoppscotch-common/src/components/app/Inspection.vue (+1 -0)
📝 packages/hoppscotch-common/src/components/http/Body.vue (+17 -0)
packages/hoppscotch-common/src/components/http/BodyBinary.vue (+70 -0)
📝 packages/hoppscotch-common/src/components/http/Headers.vue (+22 -12)
📝 packages/hoppscotch-common/src/components/http/Parameters.vue (+5 -1)
📝 packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts (+36 -2)
📝 packages/hoppscotch-common/src/helpers/utils/contenttypes.ts (+7 -1)
📝 packages/hoppscotch-common/src/pages/index.vue (+3 -0)
📝 packages/hoppscotch-common/src/services/inspection/index.ts (+4 -1)
📝 packages/hoppscotch-common/src/services/inspection/inspectors/environment.inspector.ts (+4 -2)
packages/hoppscotch-common/src/services/inspection/inspectors/interceptors.inspector.ts (+65 -0)
📝 packages/hoppscotch-data/src/rest/content-types.ts (+1 -0)
📝 packages/hoppscotch-data/src/rest/v/9.ts (+5 -0)

📄 Description

This PR adds support for sending binary data as body.

  1. since the binary file is not exported, In hoppscotch-cli, added some changes to not error the request out, like how multipart/form-data is behaving right now.

  2. hoppscotch/hoppscotch-extension#307 adds support for binary files in our browser extension.


🔄 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/hoppscotch/hoppscotch/pull/4466 **Author:** [@amk-dev](https://github.com/amk-dev) **Created:** 10/22/2024 **Status:** ✅ Merged **Merged:** 11/26/2024 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `feat/binary-body` --- ### 📝 Commits (5) - [`c04d6cb`](https://github.com/hoppscotch/hoppscotch/commit/c04d6cb8eb421004afdfe26556953be0afe08d77) feat: send binary content through body - [`79c7a89`](https://github.com/hoppscotch/hoppscotch/commit/79c7a89a4ba4ef640e219718d252aaacd349c263) fix: add schema fallback - [`ecfe98b`](https://github.com/hoppscotch/hoppscotch/commit/ecfe98bd28966fbc1a7e4cef86f062f32195789f) feat: add inspections for agent - [`6e54ea6`](https://github.com/hoppscotch/hoppscotch/commit/6e54ea6c7a8d6d32896b2179ac7066117e7d9a3e) fix: remove adding explicit inspection to url - [`0452bd8`](https://github.com/hoppscotch/hoppscotch/commit/0452bd8c33598996a2a429eff699500cd5baabe1) chore: cleanup ### 📊 Changes **16 files changed** (+261 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-cli/src/interfaces/request.ts` (+1 -1) 📝 `packages/hoppscotch-cli/src/utils/pre-request.ts` (+15 -1) 📝 `packages/hoppscotch-common/locales/en.json` (+5 -1) 📝 `packages/hoppscotch-common/src/components/app/Inspection.vue` (+1 -0) 📝 `packages/hoppscotch-common/src/components/http/Body.vue` (+17 -0) ➕ `packages/hoppscotch-common/src/components/http/BodyBinary.vue` (+70 -0) 📝 `packages/hoppscotch-common/src/components/http/Headers.vue` (+22 -12) 📝 `packages/hoppscotch-common/src/components/http/Parameters.vue` (+5 -1) 📝 `packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts` (+36 -2) 📝 `packages/hoppscotch-common/src/helpers/utils/contenttypes.ts` (+7 -1) 📝 `packages/hoppscotch-common/src/pages/index.vue` (+3 -0) 📝 `packages/hoppscotch-common/src/services/inspection/index.ts` (+4 -1) 📝 `packages/hoppscotch-common/src/services/inspection/inspectors/environment.inspector.ts` (+4 -2) ➕ `packages/hoppscotch-common/src/services/inspection/inspectors/interceptors.inspector.ts` (+65 -0) 📝 `packages/hoppscotch-data/src/rest/content-types.ts` (+1 -0) 📝 `packages/hoppscotch-data/src/rest/v/9.ts` (+5 -0) </details> ### 📄 Description This PR adds support for sending binary data as body. 1. since the binary file is not exported, In `hoppscotch-cli`, added some changes to not error the request out, like how multipart/form-data is behaving right now. 2. hoppscotch/hoppscotch-extension#307 adds support for binary files in our browser extension. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:19:13 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4819
No description provided.