Function HTTPServerResponse.switchProtocol
Special method sending a SWITCHING_PROTOCOLS response to the client.
Prototypes
ConnectionStream switchProtocol(
string protocol
);
void switchProtocol(
string protocol,
scope void delegate(scope ConnectionStream) del
);
Notice
For the overload that returns a ConnectionStream
, it must be
ensured that the returned instance doesn't outlive the request
handler callback.
Parameters
Name | Description |
---|---|
protocol | The protocol set in the "Upgrade" header of the response.
Use an empty string to skip setting this field. |
Authors
Sönke Ludwig, Jan Krüger, Ilya Shipunov
Copyright
© 2012-2013 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.