subasraj / flashpost-support

Flashpost is a lightweight Rest API Client Extension for Visual Studio Code.
MIT License
10 stars 0 forks source link

(New Change)Textmode / Raw input for headers #15

Closed BananaAcid closed 8 months ago

BananaAcid commented 9 months ago

would be great to have a button to switch to a textbox for inputting headers and maybe params as well

subasraj commented 9 months ago

Need more detailed info on this. At first look, I don't think we need this for change for now.

BananaAcid commented 9 months ago

Just as an addition, it would be great. ThunderClient uses a button to switch from table to Textfield. Is great for coping the headers as multiline string in and out

subasraj commented 8 months ago

@BananaAcid I have made the changes, please try the latest version 1.1.58

image image

image image

BananaAcid commented 8 months ago

Hi thats pretty cool, but there seems to be a bug: in the textbox for Headers entered, the space after the colon is prepended to the value. Also from converting from the table view to the textbox, the space is always missing after the colon.

HTTP Headers in consist of key+ colon + space + value. (example use: coping from the Chrome Inspector or form HTTPie or from CURL or WGET) see: List of HTTP header fields

image image


for Params:

would probably better to use Key=Value to match ?abc=def&ghi=klm to be able to be copied to HTTPie or to code.


for body (form data)

there is no bulkbutton, but a Raw tab - I suppose this is the equivalent?

Unlucky me (tested on 2 devices: win, macos): image

  1. added a value in the Form Table,
  2. switched to Raw

... I am not sure, how to enter something

subasraj commented 8 months ago

@BananaAcid "Params and Headers Bulk editing" is behaving the same way as in Postman, please try in Postman. I don't see an issue with that. Fixed the bug in body->Raw tab in version 1.1.59

BananaAcid commented 8 months ago

Headers with space: ThunderClient also does a have space. I found several discussions to fix this In postman as well, since the http protocol requires the space and copying headers from browsers naturally contains them too.


for body:

the text areas work.

I miss interpreted the RAW tab.

It could fit the other bulk edit option, if the form tab would have the same way of editing (as with my previous comment)

subasraj commented 8 months ago

Headers with space: ThunderClient also does a have space. I found several discussions to fix this In postman as well, since the http protocol requires the space and copying headers from browsers naturally contains them too.

for body:

the text areas work.

I miss interpreted the RAW tab.

It could fit the other bulk edit option, if the form tab would have the same way of editing (as with my previous comment)

@BananaAcid

  1. I have Fixed the issue in the headers for space after the colon, Please retest with the latest version of Flashpost
  2. I have added bulk edit functionality for body-> form tab