Class WebServerDispatcher


  • public class WebServerDispatcher
    extends okhttp3.mockwebserver.Dispatcher
    A Dispatcher for MockWebServer that allows per-path customisation of the static data served.
    • Method Detail

      • getRequestPath

        public static String getRequestPath​(okhttp3.mockwebserver.RecordedRequest request)
        Returns the path for a given RecordedRequest, stripping any query parameters.
      • dispatch

        public okhttp3.mockwebserver.MockResponse dispatch​(okhttp3.mockwebserver.RecordedRequest request)
        Specified by:
        dispatch in class okhttp3.mockwebserver.Dispatcher