I am using playframework for an application. I find some in the inconsistencies with the documentation. For example, the documentation says that the constructor of the FakeHeaders class must have a line map and a seq line. This is written in the documentation.
case class FakeHeaders (data: Map[String, Seq[String]]) extends Headers with Product with Serializable
This is the documentation link .
But when I write this, I get a compilation error saying that FakeHeaders should have seq instead of a map.
This is the error I am getting.
[error] found : Map[String,Seq[String]] [error] required: Seq[(String, Seq[String])]
I believe that this is due to the fact that I am using the old structure. But I do not know which version I am using. How to find out the playframework version for an existing project?
I hope I put my question clear. If there is some confusion, then ask. Thanks in advance.
source share