diff --git a/README.md b/README.md index 5a49ed6..98d4fdf 100644 --- a/README.md +++ b/README.md @@ -120,9 +120,9 @@ class LoginTests: SkyUITestCase { ### UI UITestHttpServerBuilder Mock server builder to be used in UI tests. #### func route(_ response: (endpoint: String, statusCode: Int, body: Data, responseTime: UInt32?), on: ((Swifter.HttpRequest) -> Void)? = nil) -> UITestHttpServerBuilder -Adds http route to mock server. Clousure `on` is called on main thread when a http request with path equals to `endpoint` is received by the mock server. +Adds http route to mock server. Clousure `on` is called on main the thread when a http request with path equals to `endpoint` is received by the mock server. #### func route(endpoint: String, on: @escaping ((Swifter.HttpRequest) -> HttpResponse)) -> UITestHttpServerBuilder -Adds http route to mock server. Closure `on` id called on a background thread when a http request with path equals to `endpoint` is received by the mock server. The closure allows to return different Http responses given an http request. +Adds http route to mock server. Closure `on` is called on a background thread when a http request with path equals to `endpoint` is received by the mock server. The closure allows to return different Http responses given an http request. #### buildAndStart(port: in_port_t = 8080, file: StaticString = #file, line: UInt = #line) throws -> HttpServer Build all routes added so far and starts the mock server.