Primary implementation of ExtractorLike.
Primary implementation of ExtractorLike. The name and extraction
The name of the extractor
The operation to extract the value of type A
from the Response
Basic trait for all extractors chanes are you want Extractor.
Defines Extractor
s for the specified header, specific extractors provided by the asText
, asList
, asOption
members.
Defines Extractor
s for the specified header, specific extractors provided by the asText
, asList
, asOption
members.
Instances behave like their asText
member.
Enable Extractors to be chained together in case clauses.
Enable Extractors to be chained together in case clauses.
For example:
GET / id expecting { case StatusCode(Status.OK) & Header.ContentType(ct) & BodyAsPerson(person) => ct should be("application/json") person should be(Jason) }
Provides constants for standard headers.