Could you tell me please how can I create a request with a header and an entity like:
Request.get(Path / "user" / Param.int)
.extractHeader[`Cookie`]
.withEntity(Entity.formOf[CreateUserType]),
and get handler like:
Routes.addUserType.handleIO {
(cookie: `Cookie`, newUserType: CreateUserType) =>
???
}
Could you tell me please how can I create a request with a header and an entity like:
and get handler like: