Vibe.d rest & web service?

Nicholas Wilson iamthewilsonator at hotmail.com
Thu Feb 8 11:17:53 UTC 2018


On Thursday, 8 February 2018 at 10:51:39 UTC, Arjan wrote:
> 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.

Hmm, I hadn't considered the Accept Headers.


More information about the Digitalmars-d-learn mailing list