Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for toHttpUrl (0.21 sec)

  1. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

    import assertk.assertions.contains
    import assertk.assertions.isEqualTo
    import java.net.HttpURLConnection
    import java.net.Proxy
    import java.net.URI
    import javax.net.ssl.HttpsURLConnection
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.containers.BasicMockServerTest.Companion.MOCKSERVER_IMAGE
    import okhttp3.containers.BasicMockServerTest.Companion.trustMockServer
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  2. container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt

     */
    package okhttp3.containers
    
    import assertk.assertThat
    import assertk.assertions.contains
    import javax.net.ssl.TrustManagerFactory
    import javax.net.ssl.X509TrustManager
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import org.junit.jupiter.api.Test
    import org.mockserver.client.MockServerClient
    import org.mockserver.configuration.Configuration
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  3. okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt

    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.SocketPolicy.DisconnectAfterRequest
    import okhttp3.Callback
    import okhttp3.FailingCall
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClientTestRule
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.ResponseBody
    import okio.Buffer
    import okio.ForwardingSource
    import okio.buffer
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt

    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import java.net.InetAddress
    import java.net.UnknownHostException
    import okhttp3.Cache
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okio.Path.Companion.toPath
    import okio.fakefilesystem.FakeFileSystem
    import org.junit.AssumptionViolatedException
    import org.junit.Before
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  5. okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt

    import assertk.assertions.containsExactly
    import assertk.assertions.containsOnly
    import assertk.assertions.isNull
    import java.net.UnknownHostException
    import okhttp3.ConnectionSpec
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.logging.HttpLoggingInterceptor
    import okhttp3.logging.LoggingEventListener
    import org.junit.Test
    import org.junit.runner.RunWith
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. okhttp-coroutines/src/test/kotlin/okhttp3/SuspendCallTest.kt

    import kotlinx.coroutines.withTimeout
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.SocketPolicy.DisconnectAfterRequest
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okio.Buffer
    import okio.ForwardingSource
    import okio.buffer
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Fri Apr 05 11:25:23 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  7. container-tests/src/test/java/okhttp3/containers/SocksProxyTest.kt

    package okhttp3.containers
    
    import assertk.assertThat
    import assertk.assertions.contains
    import java.net.InetSocketAddress
    import java.net.Proxy
    import java.net.Proxy.Type.SOCKS
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.containers.BasicMockServerTest.Companion.MOCKSERVER_IMAGE
    import org.junit.jupiter.api.Test
    import org.mockserver.client.MockServerClient
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val httpOnly: Boolean = cookie.httpOnly
        val secure: Boolean = cookie.secure
        val matches: Boolean = cookie.matches("".toHttpUrl())
        val parsedCookie: Cookie? = Cookie.parse("".toHttpUrl(), "")
        val cookies: List<Cookie> = Cookie.parseAll("".toHttpUrl(), headersOf())
      }
    
      @Test
      fun cookieBuilder() {
        var builder: Cookie.Builder = Cookie.Builder()
        builder = builder.name("")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  9. okhttp/src/main/kotlin/okhttp3/Request.kt

         */
        open fun url(url: String): Builder {
          return url(canonicalUrl(url).toHttpUrl())
        }
    
        /**
         * Sets the URL target of this request.
         *
         * @throws IllegalArgumentException if the scheme of [url] is not `http` or `https`.
         */
        open fun url(url: URL) = url(url.toString().toHttpUrl())
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  10. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.survey
    
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.coroutines.executeAsync
    import okhttp3.survey.types.SuiteId
    import okio.ByteString.Companion.decodeHex
    import okio.IOException
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 2K bytes
    - Viewed (0)
Back to top