[GH-ISSUE #1773] Add breakpoint template for response body #1768

Open
opened 2026-03-03 19:54:13 +03:00 by kerem · 2 comments
Owner

Originally created by @tcoxMonkeyCoder on GitHub (Sep 18, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1773

Originally assigned to: @NghiaTranUIT on GitHub.

Add breakpoint template for response body

Unless I'm misunderstanding how to use the current templates, as far as I can tell they cannot change what is in the body tab.

Why this feature/change is important?

Most of the time, the body is what I'm manipulating in a response, thus templates for the body would save me the most time.

Originally created by @tcoxMonkeyCoder on GitHub (Sep 18, 2023). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1773 Originally assigned to: @NghiaTranUIT on GitHub. ## Add breakpoint template for response body Unless I'm misunderstanding how to use the current templates, as far as I can tell they cannot change what is in the body tab. ## Why this feature/change is important? Most of the time, the body is what I'm manipulating in a response, thus templates for the body would save me the most time.
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 19, 2023):

Hi @tcoxMonkeyCoder we haven't supported the Response Template with the body because the body might be a different format that can't be represented by string. Breakpoint Template must be a string.

For example, your body can be an Image, PDF, ZIP, Binary Data, .... Thus, We haven't supported it yet.


Let me see if we can support it by using a similar approach to Map Local.

HTTP/1.1 200 OK
Date: Tue, 19 Sep 2023 01:39:21 GMT
Content-Type: image/png

<FILE_URL="/username/desktop/file.png">

So, it can work 👍

<!-- gh-comment-id:1724705843 --> @NghiaTranUIT commented on GitHub (Sep 19, 2023): Hi @tcoxMonkeyCoder we haven't supported the Response Template with the body because the body might be a different format that can't be represented by string. Breakpoint Template must be a string. For example, your body can be an Image, PDF, ZIP, Binary Data, .... Thus, We haven't supported it yet. --------- Let me see if we can support it by using a similar approach to Map Local. ```js HTTP/1.1 200 OK Date: Tue, 19 Sep 2023 01:39:21 GMT Content-Type: image/png <FILE_URL="/username/desktop/file.png"> ``` So, it can work 👍
Author
Owner

@tcoxMonkeyCoder commented on GitHub (Sep 26, 2023):

I see, thanks for looking into it. I would need to represent a json response most of the time, but I hadn't thought about other formats such as a picture.

<!-- gh-comment-id:1734671823 --> @tcoxMonkeyCoder commented on GitHub (Sep 26, 2023): I see, thanks for looking into it. I would need to represent a json response most of the time, but I hadn't thought about other formats such as a picture.
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/Proxyman#1768
No description provided.