pjdietz / rester-atom Goto Github PK
View Code? Open in Web Editor NEWAtom package for making HTTP requests using text buffers
License: MIT License
Atom package for making HTTP requests using text buffers
License: MIT License
Adding a multiline file seems to always just send the first request.
Snippet from my file:
//Hole 1
GET https://url/1
x-auth-token: token
---
//Hole 2
GET https://url/2
x-auth-token: token
---
//Hole 3
GET https://url/3
x-auth-token: token
---
I always get the result from Hole 1
CSON would be nice as you can more easily post JSON to a REST endpoint, that has a multi-line string.
Say your request body is JSON like this:
{
"test": "This is a very \n long line of \n text with some \n line breaks in it."
}
You have the tedious task to escape everything. With CSON, it could simple be put like this:
{
test: """
This is a very
long line of
text with some
line breaks in it.
"""
}
And the engine would then convert to JSON and send the request. Like https://github.com/tad-lispy/atomic-rest does, except that package is too old and won't run on newer Atom install.
Hi,
I just installed the package and it seems superb.
But I have to change the keymap for example to "Alt+R" to use it.
Best! :)
Hi pjdietz,
I changed from vim to atom, and I really miss the REST client from https://github.com/diepm/vim-rest-console
I finally found this repo fit me everything except that saving cookies feature.
Can you implement this feature or tell me some alternate way ? Thanks for great plugin.
I want to know that is possible get an option to not open in a split mode (pane)
When sending utf8 special chars on request body, the Content-Length is calculated incorrectly resulting in content truncation.
FYI I'm using https://requestb.in to test the requests.
Fail case:
POST https://requestb.in/xmh7sfxm
{
"test": "aá"
}
The response body is truncated because content length is 20, when the correctly value should be 21.
When setting the length at the request kinda solve the problem.
POST https://requestb.in/xmh7sfxm
Content-Length: 21
{
"test": "aá"
}
I really think this should be handled by the package internally.
The closest related problem I found on the internet was this issue expressjs/express#1816
I think I can provide a PR to this. I'll take a look at the code.
Use an indicator (maybe a line of at least three -
) to indicate the end of a request. Have the editor expand the selection to include everything between delimiters when there is no selection to allow easy selection of a single request inside a file containing a series of requests.
I can't find any documentation or examples on how to do the following,
POST /api/path
Host: hostname
Authorization: {{some-token-variable}}
in the above example, I would like to create a dynamic variable called some-token-variable
and define it somewhere(same file, or config file, etc..) and reuse it.
As a user, I would then define a variable, such as a token once, and can reuse it multiple times, instead of re-writing it multiple times.
Delete any other files left from the default package skeleton
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.