diff --git a/source/vibe/http/common.d b/source/vibe/http/common.d index 111bcc3..bd1cb1d 100644 --- a/source/vibe/http/common.d +++ b/source/vibe/http/common.d @@ -547,7 +547,7 @@ final class ChunkedOutputStream : OutputStream { } } - size_t write(scope const ubyte[] bytes_, IOMode mode) + size_t write(scope const(ubyte)[] bytes_, IOMode mode) { assert(!m_finalized); const(ubyte)[] bytes = bytes_; diff --git a/source/vibe/http/internal/http2/exchange.d b/source/vibe/http/internal/http2/exchange.d index 0115765..0368a2c 100644 --- a/source/vibe/http/internal/http2/exchange.d +++ b/source/vibe/http/internal/http2/exchange.d @@ -566,7 +566,7 @@ private final class HeaderOutputStream : OutputStream { return bytes.length; } /// DITTO - size_t write(scope const(ubyte[]) bytes, IOMode) + size_t write(scope const(ubyte)[] bytes, IOMode) { () @trusted { m_destination.put(cast(string)bytes); } (); return bytes.length; diff --git a/source/vibe/http/websockets.d b/source/vibe/http/websockets.d index a94946d..81b9d66 100644 --- a/source/vibe/http/websockets.d +++ b/source/vibe/http/websockets.d @@ -910,7 +910,7 @@ final class OutgoingWebSocketMessage : OutputStream { m_rng = rng; } - size_t write(scope const ubyte[] bytes, IOMode mode) + size_t write(scope const(ubyte)[] bytes, IOMode mode) { assert(!m_finalized); @@ -923,6 +923,8 @@ final class OutgoingWebSocketMessage : OutputStream { return bytes.length; } + alias write = OutputStream.write; + void flush() { assert(!m_finalized);