Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fromParts (0.22 sec)

  1. android/guava/src/com/google/common/net/HostAndPort.java

       * @throws IllegalArgumentException if {@code host} contains a port number, or {@code port} is out
       *     of range.
       */
      public static HostAndPort fromParts(String host, int port) {
        checkArgument(isValidPort(port), "Port out of range: %s", port);
        HostAndPort parsedHost = fromString(host);
        checkArgument(!parsedHost.hasPort(), "Host has a port: %s", host);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  2. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

    class MainTest {
      @Test
      fun simple() {
        val request = fromArgs("http://example.com").createRequest()
        assertThat(request.method).isEqualTo("GET")
        assertThat(request.url.toString()).isEqualTo("http://example.com/")
        assertThat(request.body).isNull()
      }
    
      @Test
      @Throws(IOException::class)
      fun put() {
        val request = fromArgs("-X", "PUT", "-d", "foo", "http://example.com").createRequest()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top