Vibe.d rest & web service?

Arjan arjan at ask.me.to
Thu Feb 8 10:51:39 UTC 2018


On Wednesday, 7 February 2018 at 20:23:10 UTC, Nicholas Wilson 
wrote:
> On Wednesday, 7 February 2018 at 19:50:31 UTC, Jacob Carlborg 
> wrote:
>> Have you tried this?
>
> No. But apart from the fact that I forgot to make the class 
> inherit from an interface to that the rest interface would 
> actually compile, the web interface is routed before the rest 
> interface and so the rest interface would never be reached 
> since the methods are all the same and the REST's are shadowed 
> by the web's .

Makes me wonder whether or not vibe does honor the http request 
Accept headers?
e.g.: application/json or application/javascript or text/html etc.



More information about the Digitalmars-d-learn mailing list