Giter Site home page Giter Site logo

roku-requests's Issues

crash if param value is invalid

                m._qs_array.push([param, key])```

crashses if one of the params is invalid. If I get time I'll submit a pr - flagging so there's somewhere to track this.

Better handling of XML response

Request shouldn't try parsing obvious HTML/XML, e.g. anything starting with a < for instance, possibly also response starting with whitespace.

Some design considerations

I recently started using this library, and it's going great, loving lots of the built-in features!

But I'm also hitting some of the limitations that other libs of this kind don't face:

  • The ability to "build" the request, but not send it yet
  • Send the request in parallel with other requests

In short, sending a request today is doing everything in one shot: build a request, send, wait for a response.

This needs to potentially become 3 methods:

  • Request() (get()/post()/etc)
  • Send()
  • Await()

This way, it becomes possible to send multiple requests, and control the flow of blocking the UI until a request is ready. (And by blocking the UI I don't mean blocking the UI thread, I know this lib does async behind the scenes)

Array in POST body

Please add support for array in POST request
Request.brs, line 54
if args.json <> invalid and (type(args.json) = "roAssociativeArray" or type(args.json) = "roArray")

Fix test project

The test project currently uses rooibos, and has a few syntax errors. @georgejecook can you give this a quick look and get the tests working again?

Add option not to parse response as JSON

It would be great if parsing responses as JSON could be made optional. I am accessing an API that accepts JSON in request body but responds only with the string "ok". This results in errors such as ERROR: ParseJSON: Unknown identifier 'ok'.

Could there be an option for it? Alternatively, the parsing could be dependent on the response content-type.

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.