Thanks, Roberto. I will look at that.
However, my question may have been unclear. My main - or at least
initial - objective is not to develop a uWSGI plugin for Racket, but a
Racket library that handles communication with the HTTP server using
the uwsgi protocol. Perhaps I misunderstand how uWSGI works, but I
think those are, or can be, two different things.
In other words, my API would provide a function like:
# pseudocode
define run-uwsgi-server port request-handler *args:
get input
parse input
call request-handler with parsed input
return response
loop
... so for a simple application, the user would only need to code the
request handler. I believe this is a pretty common pattern, and I
suppose there's a name for such a library, but I'm not sure what the
name is.
Of course, in order to do this I need to know the forms in which
requests and responses are transmitted by uWSGI.
Maybe your tutorial will answer that question? If not, I will still
hope for some clarification on this list.
On Wed, Nov 19, 2014 at 2:47 AM, Roberto De Ioris <[email protected]> wrote:
>
>> Hello, list--
>>
>> I am considering developing a uWSGI library (i.e. to support app
>> development) for the Racket language, but I am having a little trouble
>> finding the information I need to do that.
>>
>> I've read the 'uwsgi Protocol' page on readthedocs.org, but it only
>> describes the packet encoding. Okay, I've also seen the "magic
>> variables" page; but those don't seem to be sufficient to build
>> anything practical. It seems to me that I need to know the
>> representation of requests and responses, right? I can't find any
>> documentation that addresses that. Is that outside the scope of uwsgi,
>> or is there indeed part of the protocol that is undocumented?
>>
>> I suppose I can study some code - in fact, I'm planning to look at the
>> Python module anyway - but I suspect I will not be able to tell by
>> reading that code what is part of the protocol and what is an
>> implementation detail.
>>
>> Can anyone help me find the missing knowledge? Many thanks!
>>
>>
>
> Hi, the first step is understanding if the language has a
> c/c++/objective-c api. If yes, you can develop a plugin for uWSGI.
>
> A work-in-progress tutorial is here:
> https://github.com/unbit/uwsgi-docs/blob/master/tutorials/WritingPlugins.rst
>
> but the best source is the lua one:
>
> https://github.com/unbit/uwsgi/tree/master/plugins/lua
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi