Skip to content

ApacheError

Giuseppe Cannella edited this page Feb 19, 2020 · 2 revisions
Type name example
ApacheError [Fri Dec 16 02:25:55 2005] [error] [client 1.2.3.4] Client sent malformed Host header
import com.github.gekomad.regexcollection.ApacheError
import com.github.gekomad.regexcollection.Validate.validate

assert(validate[ApacheError]("[Fri Dec 16 02:25:55 2005] [error]  [client 1.2.3.4] Client sent malformed Host header") == None)
assert(
      validate[ApacheError]("[Fri Dec 16 02:25:55 2005] [error] [client 1.2.3.4] Client sent malformed Host header") == Some(
        "[Fri Dec 16 02:25:55 2005] [error] [client 1.2.3.4] Client sent malformed Host header"
      )
)
Clone this wiki locally