-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
The puzzle 23-e7afac42
from #23 has to be resolved:
cactoos-http/src/main/java/org/cactoos/http/HtUpgradeWire.java
Lines 32 to 45 in 31af9ea
* @todo #23:30 min As discovered in #53, the upgrade is not a job of the | |
* wire because it need reading the contents of the response (in this case, | |
* status code). So, this feature would be under the responsibility of a | |
* response-like object. It must be implemented someway like this: | |
* new HtUpgradedResponse( | |
* new IterableOf<>( | |
* new MapEntry<Func<String, Boolean>, Func<URI, Wire>>( | |
* upgrade -> upgrade.contains("TLS"), | |
* HtSecureWire::new | |
* ) | |
* ) | |
* ) | |
* The test HtUpgradeWireTest#testHtUpgrade must be removed after the | |
* implementation of this class. |
The puzzle was created by rultor on 30-May-18.
Estimate: 30 minutes,
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.