Questions tagged [requesthandler]

104 questions
1
vote
2 answers

multi request handling parallelly by using flask

@app.route("/") def start(): #will do some task return 'completed' In the above program, after execution the 1st request 2nd request will execute. But I want to make such a server that will accept, execute and response multiple requests at…
Saikat Kundu
  • 350
  • 1
  • 15
1
vote
1 answer

Call torando Request Handler function without running tornado loop start?

I need to store the output of a get function of a request handler before running the tornado server from outside the application. Example:- class Test(RequestHandler): def get: print "safds"' .... ... I need to call get function…
rohitsakala
  • 379
  • 3
  • 15
1
vote
0 answers

Python: Page will not load when using Python SImpleHTTPServer with a RequestHandler

I'm creating a simple server to serve a form via Python. The user will post their name and a message through an HTML form, on the server-side python will retrieve these values and append them to a file. I've tested each part on their own, other…
1
vote
1 answer

How do I return the MIME type for a font?

Proper MIME type for fonts This matter is solved but i dont know how to do. help me I use cakePHP , I read RequestHanlder Component in bookcake but i dont ever use MIME.
meotimdihia
  • 4,191
  • 15
  • 49
  • 69
1
vote
1 answer

How to call a webapp2 method from Cloud endpoint api?

I have written a GAE application using Python. The application has a mobile component that is being built in Android. I am using custom credentials and not using Google OAuth for authentication. I have created a Cloudendpoint API so the application…
1
vote
1 answer

Partial page render, use webapp2 post request handler to pass a msg

I am just getting to grips with jinja2 templating on GAE. What I am trying to do is to display a status msg in the rendered template without rendering the whole template again. I have a webapp2 request handler which deals with sending a mail. In…
Dennis Bauszus
  • 1,624
  • 2
  • 19
  • 44
1
vote
2 answers

Can a Tornado RequestHandler attend requests, while waiting for a Future to finish?

Can a single Tornado RequestHandler class attend new requests, while waiting for a Future to finish in one of its instances? I was debugging a Tornado coroutine that called a ThreadPoolExecutor and I noticed that, while the coroutine was waiting for…
1
vote
4 answers

Solr Custom UpdateRequestProcessorFactory

I am stumped by this problem. I have written a custom UpdateRequestProcessorFactory. The code is: package mira; import java.io.IOException; import org.apache.solr.common.SolrInputDocument; import org.apache.solr.request.SolrQueryRequest; import…
Mike
  • 11
  • 3
1
vote
1 answer

Jquery Datatables Ajax Response

I am trying to follow the datatable example for Ajax data source (objects) found here. I am using asp.net and have the following handler which receives my data, processes it and provides the response. public class UsersHandler : IHttpHandler { …
Luke Stoward
  • 1,480
  • 14
  • 24
1
vote
1 answer

Call Tornado WebSocketHandler from Requesthandler

I am using Tornado Webserver and want to internally call a WebSocketHandler from a RequestHandler. It is not possible to use the redirect /redirectHandler functionality, because the WebSocketHandler class to call ("IndexHandlerDynamic1" in the…
Whezz
  • 85
  • 6
1
vote
2 answers

Cakephp Rest Get header

I'm trying to get header content from a json post request. But I can't seem to find a method for it in the requesthandler... print_r($this->request); doesn't show anything useful. I've…
Mark
  • 2,423
  • 4
  • 24
  • 40
1
vote
1 answer

POST request with text

I'm with a weird problem, it seems correct to me, well.. I'll try to explain : my function uploader: var body = ''+ ''+ ''+ ''+ ''+ '
melloc
  • 833
  • 7
  • 13
1
vote
0 answers

Specifying Request Handler for Solr Join

I am using Solr 4.5.1. This is the syntax for a join query: q=blue&fq={!join fromIndex=core1 toIndex=core2 from=field1 to=field2} city:nyc If I want core1 (fromIndex) to use a different request handler(other than the default), how do I specify…
Mohamed
  • 87
  • 1
  • 9
1
vote
1 answer

How to search a class which can handle specific data in Java?

I have multiple classes in my current project like HTMLRequest, SPDYRequest, BHIVERequest. I get data from a network stream and I want to find out, which of the classes can handle this data. For this I read the header of the Stream packet (All…
th3falc0n
  • 1,389
  • 1
  • 12
  • 33
1
vote
1 answer

tornado requesthandler overwrite head method

I'm using tornado framework of python to build up my site, and I encountered a problem. Now there is a requirement my site should response to head method, but in tornado, it would only return a 405 response, while I need to return the header of the…
Roger Liu
  • 1,768
  • 3
  • 16
  • 25