Vibe.d web interface tutorial

Daniel Kozak kozzi11 at gmail.com
Tue Mar 13 13:42:20 UTC 2018


Yes PHP is always to blame :)

On Tue, Mar 13, 2018 at 1:55 PM, Steven Schveighoffer via
Digitalmars-d-announce <digitalmars-d-announce at puremagic.com> wrote:

> On 3/13/18 6:22 AM, Daniel Kozak wrote:
>
>> On contrary I really hate that :D.
>> Because of this:
>>
>> HTTP methodRecognized prefixes
>> GETget, query
>> PUTset, put
>> POSTadd, create, post
>> DELETEremove, erase, delete
>> PATCHupdate, patch
>>
>> I am calling vibed from PHP and I need to tweak my curl for every request
>> baceuse of this :D
>>
>
> That's not what I was talking about, I was talking about how the
> parameters are automatically parsed passed to the web functions. It doesn't
> affect how the routes are called externally, just how the parameters are
> dealt with.
>
> Note, you can override the method for any/all routes:
>
> class WebInterface
> {
>    @method(HTTPMethod.GET):
>     ... // all methods are now get
> }
>
> I think perhaps the root cause of your problem is using PHP ;)
>
> -Steve
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20180313/71f72687/attachment.html>


More information about the Digitalmars-d-announce mailing list