+htc #16030 Age and Expires headers
* Added models/parsers for Age and Expires headers * Updated tests using RawHeader to use typed headers
This commit is contained in:
parent
0f1feac42e
commit
fb968eb4be
11 changed files with 97 additions and 28 deletions
|
|
@ -65,7 +65,7 @@ class UnmarshallingSpec extends FreeSpec with Matchers with BeforeAndAfterAll wi
|
|||
|Content-type: text/xml
|
||||
|Age: 12
|
||||
|--XYZABC--""".stripMarginWithNewline("\r\n"))).to[Multipart.General] should haveParts(
|
||||
Multipart.General.BodyPart.Strict(HttpEntity.empty(MediaTypes.`text/xml`), List(RawHeader("Age", "12"))))
|
||||
Multipart.General.BodyPart.Strict(HttpEntity.empty(MediaTypes.`text/xml`), List(Age(12))))
|
||||
}
|
||||
"one non-empty part" in {
|
||||
Unmarshal(HttpEntity(`multipart/form-data` withBoundary "-",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue