Released vibe-core 1.0.0 and vibe.d 0.8.0

Sönke Ludwig via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Jul 11 08:28:41 PDT 2017


Am 11.07.2017 um 15:13 schrieb Jack Applegame:
> slightly reduced
> 
> /+ dub.json:
>      {
>          "name": "test",
>          "versions": ["VibeManualMemoryManagement"],
>          "dependencies": {
>              "vibe-d": "~>0.8.0"
>          }
>      }
> +/
> 
> module main;
> 
> import std.conv;
> import std.stdio;
> import vibe.http.client;
> 
> void main() {
>      HTTPStatus status;
>      requestHTTP("https://steamcommunity.com", (scope request) {}, 
> (scope response) {
>          status = response.statusCode.to!HTTPStatus;
>          response.dropBody();
>      });
>      writefln("status: %s", status);
> }

Thanks! I've pushed a fix for 0.8.1: 
https://github.com/rejectedsoftware/vibe.d/commit/c0a5050088d41b726984e3beb71b9a976aaf2ba8


More information about the Digitalmars-d-announce mailing list