Opens a websocket.
Opens a websocket. Only requests for which the method & URI are specified can be sent.
An effect resulting in a WebSocketResponse, containing a WebSocket instance allowing sending and receiving messages, if the request was successful and the connection was successfully upgraded to a websocket. A failed effect, if an exception occurred when connecting to the target host, writing the request, reading the response or upgrading to a websocket. Known exceptions are converted to one of SttpClientException. Other exceptions are kept unchanged.
Sends the request.
Sends the request. Only requests for which the method & URI are specified can be sent.
An effect resulting in a Response, containing the body, deserialized as specified by the request (see RequestT.response), if the request was successful (1xx, 2xx, 3xx response codes), or if there was a protocol-level failure (4xx, 5xx response codes). A failed effect, if an exception occurred when connecting to the target host, writing the request or reading the response. Known exceptions are converted to one of SttpClientException. Other exceptions are kept unchanged.
Experimental!