Skip to content

vibed/web-server.md code example build error. #355

@VGeo

Description

@VGeo

The WEB Server example building fails with

source/app.d(51,9): Error: invalid `foreach` aggregate `req.headers`, define `opApply()`, range primitives, or use `.tupleof`

DMD64 D Compiler v2.097.2, vibe.d 0.9.3

Could be fixed with byKeyValue() method:

foreach(key, value; req.headers.byKeyValue()) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions