All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.themillhousegroup.scoup.options.ScoupOptions.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.themillhousegroup.scoup.options

import scala.concurrent.duration.Duration

final case class ScoupOptions(
  val userAgent: String = UserAgents.macChromeUserAgentString, // Supply a custom User-Agent string if needed
  val timeout: Duration = Waits.FifteenSeconds.duration, // Nominate a different timeout as a scala.concurrent.duration.Duration
  val ignoreContentType: Boolean = false, // If true, the content type of the response will be ignored. Otherwise, JSoup expects HTML / XML
  val followRedirects: Boolean = true, // If false, redirects will NOT be followed
  val ignoreHttpErrors: Boolean = false // If false, an exception will be thrown on HTTP errors. Else, the body of the response is populated with the error.
  )




© 2015 - 2024 Weber Informatics LLC | Privacy Policy