kriogenia / rede

CLI tool to run and configure suites of HTTP requests defined in readable files
http://rede.sotoestevez.dev/
Apache License 2.0
1 stars 3 forks source link

Add new convenience body types #63

Open kriogenia opened 1 month ago

kriogenia commented 1 month ago

Currently, rede only supports the four basic body types and some extra types as convenience.

The plan is to expand this as much as possible to support at least the most used MIME types. These are pretty simple contributions that any new contributor can tackle with ease, see #62 as an example.

If there's any type that you are missing or you want to make a contribution, comment what you are planning to implement and just open a PR.

MIME Key Type State
application/json json raw IMPLEMENTED ( #62 )
application/xml xml raw IMPLEMENTED ( #62 )
text/html html raw
application/gzip gz, gzip binary IMPLEMENTED ( #66 )
application/zip zip binary IMPLEMENTED ( #66 )
image/gif gif binary IMPLEMENTED ( #66 )
image/jpeg jpeg binary IMPLEMENTED ( #65 )
image/png png binary IMPLEMENTED ( #65 )
video/mp4 mp4 binary
application/pdf pdf binary IMPLEMENTED ( #65 )
... ... ...
toastx commented 1 month ago

ill do it

kriogenia commented 1 month ago

Awesome! Thank you, @toastx . You can pick whatever type you prefer.

toastx commented 1 month ago

are we sure we have the correct working file uploaded? . . image

kriogenia commented 1 month ago

are we sure we have the correct working file uploaded? . . image

I guess that you were running cargo build from the root? That won't work as cargo fails to resolve the features correctly. That's an issue I would like to dig into but I didn't have the time yet. If you want to compile the binary, run cargo build -p rede instead. Specifying the package it works.

I will also taks myself with updating the README with this information. Sorry about that.