Debugging bad requests with vibe

rjframe dlang at ryanjframe.com
Fri Feb 9 17:55:21 UTC 2018


On Fri, 09 Feb 2018 15:48:54 +0000, Nicholas Wilson wrote:

> On Friday, 9 February 2018 at 08:06:53 UTC, Seb wrote:
>> On Thursday, 8 February 2018 at 17:09:44 UTC, Nicholas Wilson wrote:
>>> Is there a way I can see/log what requests are being made? I can
>>> change both the client and server.
>>
>> -v and -vv
> 
> So it turns out that structs do not work as parameters TO rest interface
> functions.
> 
> https://github.com/vibe-d/vibe.d/issues/2067

I have a project doing this; I think I solved that (or something) with:

```
@path("/api/")
interface RestAPI {
    // stuff
}
```

I cannot reproduce your problem with that code though to see if it will 
work.


More information about the Digitalmars-d-learn mailing list