Git Product home page Git Product logo

rester-atom's People

Contributors

azakur4 avatar pjdietz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rester-atom's Issues

Multiline does not seem to work

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

Add support for CSON

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.

Keymap support for Linux

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! :)

UTF-8 special chars causes wrong content-length calculation

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á"
}

image

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á"
}

image

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.

Marker for delimitting requests

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.

Variables documentation or how to

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.