Questions tagged [redstone.dart]

17 questions
3
votes
1 answer

Dart / Redstone - HTTPS Connection

Good Morning, I have a problem, I want to make a HTTPS connection, between my API’s and my server. I use Dart with a Redstone Dart layer. All my certificates are validated. I use the RedStone function’s: start (); to make this connection. But I…
3
votes
1 answer

Redstone Mapper stuck on pub get

I added redstone_mapper in my dependencies and run pub get then it got stuck on resolving dependencies... Here's my pubspec.yaml name: sample version: 0.0.1 description: SAMPLE author: Joes homepage: http://www.joes.com/ environment: sdk: '>=1.5.0…
Miguel Fermin
  • 380
  • 1
  • 3
  • 13
3
votes
1 answer

Streaming text in Dart with Redstone/Shelf

It just occurred to me that it would make sense to stream strings, each representing an element from a database query instead of returning the whole list of them at the end of the process, this might get the first result earlier on the browser. So I…
Cristian Garcia
  • 9,630
  • 6
  • 54
  • 75
2
votes
1 answer

Access current route metadata in redstone interceptor

How can I access a route or group metadata from within an interceptor? I would like to add a @public() to a route like: @app.Route("/user/find/:id") @public() getUser(String id) => {"name": "User", "login": "user"}; And create an interceptor that…
Jonathan
  • 4,724
  • 7
  • 45
  • 65
2
votes
1 answer

Get classes that have fields annotated with Redstone's @Field()

I have some Dart classes in my project where I annotate some fields with Redstone Mapper's @Field() annotation. How can I get all these classes at runtime? I've seen the private Map _cache in redstone_mapper_factory... but it's private. I'm aware of…
Alon Amir
  • 4,913
  • 9
  • 47
  • 86
2
votes
1 answer

How do I redirect http request to https in Redstone?

In expressjs, I can do app.use(function(req, res, next) { if((!req.secure) && (req.get('X-Forwarded-Proto') !== 'https')) { res.redirect('https://' + req.get('Host') + req.url); console.log('redirected http request to https'); …
kzhdev
  • 667
  • 5
  • 14
2
votes
1 answer

Wrong decode() from redstone_mapper about observable object in web app

I have different results of using decode() from redstone.dart with object which has observable fields in console and web applications. My console app has pubspec.yaml name: 'redstone_decode' version: 0.0.1 description: console app environment: …
user3103137
  • 125
  • 2
  • 7
2
votes
1 answer

How do you add CORS headers in Redstone interceptor?

I'm trying to add CORS headers to incoming requests but I've noticed that app.response.headers is an immutable map and app.request.response doesn't exist even though it appears in the documentation examples. So, to the OPTIONS request I'm replying…
lucassp
  • 4,133
  • 3
  • 27
  • 36
1
vote
2 answers

Dart ignore dependency?

How can I ignore a dependency in a project? My project setting is: Project A: depends on Angular2 & depends on Foundation Project Foundation: depends on Redstone_mapper_mongo The problem is I want to use angular2 in my Project A which depends on my…
GreenTigerEye
  • 5,917
  • 9
  • 22
  • 33
1
vote
1 answer

batch url execution with redstone

I am creating a rest api with redstone and dart. Now I need to create a way to send several commands of the api in one POST. Edit (@Pacane): Yes, the idea is to have one endpoint that can parse several commands within the api. Each command is…
Jonathan
  • 4,724
  • 7
  • 45
  • 65
1
vote
2 answers

Serving a webpage with Redstone

I am developing a web application with Dart using redstone and polymer Because Dart allows for server and client side development, I wonder what a good pattern for a web application is (specifically to Dart) Option 1: Have a server, say,…
Victor Ermolaev
  • 721
  • 1
  • 5
  • 16
1
vote
2 answers

Decoding a List in Dart with Redstone Mapper

I am trying to decode a list of integers, e.g. "[1,2,3,4]", like this decodeJson(json, new List().runtimeType) but I am getting this error MapperException: UnsupportedType: List. This type wasn't mapped by redstone_mapper's transformer.…
Cristian Garcia
  • 9,630
  • 6
  • 54
  • 75
0
votes
1 answer

Redstone mapper with flutter

I want to use the redstone mapper to decode Json to objects. However flutter doesn't support mirrors and so I cannot initialize the mapper over the normal way with bootstrapMapper(); Therefore I looked it up, I have to use…
GreenTigerEye
  • 5,917
  • 9
  • 22
  • 33
0
votes
2 answers

is redstone framework dead?

The redstone project, http://redstonedart.org/, depends on the DI package, which is dead for quite sometime. I wonder: is the project redstone also dead? Or is there any plans to change this scenario? It is a great package, however, the DI…
Jonathan
  • 4,724
  • 7
  • 45
  • 65
0
votes
1 answer

Dart Redstone: How to use interceptors declared in different packages?

Interceptors work when I declare them in same package, but when I declare them in different package, they are not being registered and never being called. How can I use interceptors declared in different packages?
Ravi Teja Gudapati
  • 2,809
  • 2
  • 13
  • 16
1
2