Iron is a extensible web framework for Rust.
Questions tagged [iron]
120 questions
3
votes
1 answer
IronPython windows 7 pythonpath
after installation iropython on windows 7 there is a environment variable
PYTHONPATH=C:\Program Files (x86)\IronPython 2.7\Lib
well known this variable on linux system, I want to expand it to folder
c:\user...\pymodules
I try it…

Werner
- 31
- 3
2
votes
1 answer
Where can I download Iron Javascript
I read up a little about iron javascript but where do I go to download it?
http://dotnet.dzone.com/articles/pumping-iron-javascript.

David
- 5,403
- 15
- 42
- 72
2
votes
0 answers
C# - Can not access File which is already being used - Iron OCR
I am using "Iron OCR", something like "Tesseract" to detect and scan certain Text from Screenshots.
Now I have the following error. Every time Iron OCR is used to scan an image for text it tries to access the Iron OCR log file which is somehow still…

Baseult Private
- 85
- 11
2
votes
1 answer
Can't capture dynamic environment in a fn item about iron lib
I use the cassandra of the c/c++ driver to query, and then return the data.
Therefore, both cass (LinkedList) and cass_it (Vec) can show the result of the query.
However, I want to display the results to the web using the json format, so I chose…

Chi Wei Shen
- 307
- 1
- 2
- 8
2
votes
0 answers
Compiler complaint about `Deserialize` not derived
I have been trying to get bodyparser and iron to work. This is my structure so far:
#[macro_use]
extern crate serde_derive;
extern crate iron;
extern crate serde;
extern crate bodyparser;
#[derive(Serialize, Deserialize, Clone, Debug)]
struct…

Lanbo
- 15,118
- 16
- 70
- 147
2
votes
1 answer
Iron::new()::http() intercepts stdin
I'am trying to implement educational client-server application using Rust and Iron. I've encountered the behaviour that I can't understand. Here is the code:
fn main() {
Iron::new(hello_world).http("localhost:3000").unwrap();
let mut input…

Vladislav Sazanovich
- 537
- 1
- 5
- 16
2
votes
1 answer
Cannot create an Iron handler because the trait bound std::ops::Fn<(&mut iron::Request)> is not satisfied
I'm trying to create a handler for Iron requests:
extern crate iron;
extern crate mount;
use iron::{Iron, Request, Response, IronResult, status};
use mount::Mount;
use iron::middleware::Handler;
struct Server {
message: String
}
impl Server…

TlmaK0
- 3,578
- 2
- 31
- 51
2
votes
1 answer
Cannot access parameters in Iron because the trait bound plugin::Plugin is not satisfied
I am exploring the capabilities of the Iron web framework. As far as I have figured out, the Iron core doesn't have an API to handle
HTTP parameters so I tried to use the params crate.
error: the trait bound `params::Params:…

Daniil Iaitskov
- 5,525
- 8
- 39
- 49
2
votes
1 answer
How can I use Server-Sent events in Iron?
I have a small Rust application that receives some requests through a serial port, does some processing and saves the results locally. I wanted to use a browser as a remote monitor so I can see everything that is happening and as I understand SSEs…

Luke B.
- 1,258
- 1
- 17
- 28
2
votes
2 answers
Injecting a Diesel connection into an Iron middleware
In writing my tests, I'd like to be able to inject a connection into the request so that I can wrap the entire test case in a transaction (even if there is more than one request in the test case).
I've attempted to do this using a BeforeMiddleware…

NeuroXc
- 652
- 6
- 22
2
votes
1 answer
How to add a header in Iron's AfterMiddleware?
I want to add Access-Control-Allow-Origin: * for every response my app will make.
According to the docs, AfterMiddleware is exactly for this
In the common case, a complete response is generated by the Chain's Handler and AfterMiddleware simply do…

Tommi
- 3,199
- 1
- 24
- 38
2
votes
1 answer
custom icon not showing up in iron-icon
I'm trying to use some custom svg icon in iron-icon element but it's not showing up. All standard icons from iron-iconset are working great.
I linked all neccessary polymer libraries but it's still haven't resolved my problem

Christian
- 535
- 1
- 6
- 13
2
votes
1 answer
Is possible to post a JSON file at a router location with the Iron framework?
I'm using the Iron web framework (for the Rust programming language) in an application and I have a path exposed to POST JSON data at using the Router crate.
It works but I have to percent encode my JSON data and append it as a string to the end of…

chups
- 53
- 5
2
votes
1 answer
Tests panic when HTTP server starts after old one is closed
I have some tests written, each function starts iron's HTTP server and closes it after test is done:
extern crate iron;
use iron::prelude::*;
fn hello_world(_: &mut Request) -> IronResult {
Ok(Response::with((iron::status::Ok, "Hello…

franza
- 2,297
- 25
- 39
2
votes
0 answers
LoadingTemplate timeOut function - Iron & Meteor
I would like to know how I could force loading template to have a minimum load time (ex: 3 seconds) before loading my default template / controller (App Controller). I have no subscriptions so, the only thing I need is to set the timeout for…

natali
- 125
- 2
- 9