rokucommunity / roku-requests Goto Github PK
View Code? Open in Web Editor NEWPython requests inspired Brightscript Network Library for Roku
License: MIT License
Python requests inspired Brightscript Network Library for Roku
License: MIT License
The package is quite chatty, it would be great to be able to set the log level. Ideally, the roku-log package could be used so that one could set the desired log level.
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.
Request shouldn't try parsing obvious HTML/XML, e.g. anything starting with a <
for instance, possibly also response starting with whitespace.
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:
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:
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)
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")
I saw a case where CreateObject("roFileSystem")
can return invalid (crash report in iBicha/playlet#62)
Worth adding a null check on it
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?
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.
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.