{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/18935","labels_url":"https://api.github.com/repos/akka/akka/issues/18935/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/18935/comments","events_url":"https://api.github.com/repos/akka/akka/issues/18935/events","html_url":"https://github.com/akka/akka/issues/18935","id":117073626,"number":18935,"title":"Support other than `websocket` in switching protocols for akka-http.","user":{"login":"TimothyKlim","id":387270,"avatar_url":"https://avatars.githubusercontent.com/u/387270?v=3","gravatar_id":"","url":"https://api.github.com/users/TimothyKlim","html_url":"https://github.com/TimothyKlim","followers_url":"https://api.github.com/users/TimothyKlim/followers","following_url":"https://api.github.com/users/TimothyKlim/following{/other_user}","gists_url":"https://api.github.com/users/TimothyKlim/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyKlim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyKlim/subscriptions","organizations_url":"https://api.github.com/users/TimothyKlim/orgs","repos_url":"https://api.github.com/users/TimothyKlim/repos","events_url":"https://api.github.com/users/TimothyKlim/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyKlim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/t:http","name":"t:http","color":"CCCCCC"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:core","name":"t:http:core","color":"ededed"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:server","name":"t:http:server","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-16T08:21:46Z","updated_at":"2015-11-19T22:21:50Z","closed_at":null,"body":"Hello hAkkers,\r\n\r\nI'm trying to work with docker http api response like this:\r\n\r\n```\r\nHTTP/1.1 101 UPGRADED\r\nContent-Type: application/vnd.docker.raw-stream\r\nConnection: Upgrade\r\nUpgrade: tcp\r\n\r\n{{ STREAM }}\r\n```\r\n\r\nwith akka-http:\r\n\r\n```scala\r\nimport akka.stream.scaladsl._\r\nimport akka.http.scaladsl.Http\r\nimport akka.http.scaladsl.model._\r\nimport akka.http.scaladsl.model.headers.{UpgradeProtocol, Upgrade}\r\n\r\nSource\r\n  .single(\r\n    HttpRequest(\r\n      HttpMethods.POST,\r\n      \"/containers/mongo/attach?stream=1&stdout=1&stderr=1\",\r\n      headers = List(Upgrade(List(UpgradeProtocol(\"tcp\"))))\r\n    )\r\n  )\r\n  .via(Http().outgoingConnection(\"coreos\", 2375)) // docker api\r\n  .runWith(Sink.head)\r\n  .flatMap { res =>\r\n    println(res.headers) // => List(Connection: Upgrade, Upgrade: tcp)\r\n    println(res.entity.isCloseDelimited(), res.entity.isIndefiniteLength()) // => (false, false)\r\n    res.entity.dataBytes.runForeach(println) // => ByteString()\r\n  }\r\n```\r\n\r\nthis example implicitly did close without waiting for data to print. Any ideas how to stop implicitly connection close?\r\nThank you."},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/158219020","html_url":"https://github.com/akka/akka/issues/18935#issuecomment-158219020","issue_url":"https://api.github.com/repos/akka/akka/issues/18935","id":158219020,"user":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T22:21:50Z","updated_at":"2015-11-19T22:21:50Z","body":"Hi @TimothyKlim, could you provide some background who uses this and why you need it?\r\n`Upgrade: tcp` sounds somewhat weird, but I guess you've seen it in the wild in existing APIs?"}}