CodeStory / fluent-http

This is the simplest fastest full fledged web server we could come up with.
Other
209 stars 43 forks source link

bracket support in annotation as jax-rs #120

Open mrenou opened 9 years ago

mrenou commented 9 years ago

Hello,

When I write this :

@Get("/avatars/:userId.png")
public Payload getAvatar(String userId) {

}

With the http call "GET /avatars/42.png", I expect to have userid equals to "42", actualy, I have userId equals to "42.png".

May be, you could add bracket support, to isolate the variable name, as in jax-rs :

@Get("/avatars/:{userId}.png")
public Payload getAvatar(String userId) {

}

Thanks.

mgohin commented 9 years ago

+1