package
recorder
Type Members
-
case class
HttpRecord(session: String, requestHash: Int, method: String, destHost: String, path: String, requestHeader: Map[String, String], requestBody: String, responseCode: Int, responseHeader: Map[String, String], responseBody: String, createdAt: Instant) extends Product with Serializable
-
class
HttpRecordStore extends AutoCloseable with LogSupport
-
case class
HttpRecorderConfig(destUri: String = "localhost", sessionName: String = "default", expirationTime: String = "1w", storageFolder: String = "fixtures", recordTableName: String = "record", port: Int = 1, excludeHeaderPrefixes: Seq[String] = ..., fallBackHandler: Service[Request, Response] = HttpRecorder.defaultFallBackHandler) extends Product with Serializable
-
Creates a proxy server for recording and replaying HTTP responses. This is useful for simulate the behavior of Web services, that are usually too heavy to use in an restricted environment (e.g., CI servers)