Your teach may intend for you to do it a hard way, but the trivial way
is use the dispatch system:

http://docs.racket-lang.org/web-server/dispatch.html

The first example is more than you need. I suggest asking your teacher
if they had something more complicated (and instructive) in mind
though.

Jay

On Thu, Nov 5, 2015 at 8:12 PM, João Martins <gerenciador...@gmail.com> wrote:
> I am doing a university project and need to create a server racket. The 
> purpose of this server is that from a URL we perform following function, eg:
>
> http: // localhost: 8080 / fibonacci / 10
>
> So when I access this URL, I need to get the string "fibonacci" and the value 
> 10 so you can call the fibonacci function passing as parameter the value 10.
>
> I'm using the doc: http://docs.racket-lang.org/web-server/
> and
> http://docs.racket-lang.org/more/
>
> So far managed to create all the functions you need and also the html that 
> will be used, the only problem is that I can not receive the function name 
> (Fibonnaci) and the parameter.
>
> Could anyone help me?
> Thank you!
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Jay McCarthy
Associate Professor
PLT @ CS @ UMass Lowell
http://jeapostrophe.github.io

           "Wherefore, be not weary in well-doing,
      for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
                          - D&C 64:33

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to