Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for didn (0.15 sec)

  1. okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt

          } catch (e: Throwable) {
            failure = e
          }
    
          if (entry.input in knownFailures) {
            if (failure == null) failures += AssertionError("known failure didn't fail: $entry")
          } else {
            if (failure != null) failures += failure
          }
        }
    
        if (failures.isNotEmpty()) {
          for (failure in failures) {
            println(failure)
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

              // Conscrypt's response to the FAIL_HANDSHAKE
            }
            else -> throw expected
          }
        }
      }
    
      /**
       * We had a bug where we attempted to gunzip responses that didn't have a body. This only came up
       * with 304s since that response code can include headers (like "Content-Encoding") without any
       * content to go along with it. https://github.com/square/okhttp/issues/358
       */
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        // Tell the call about the connecting call so async cancels work.
        user.addPlanToCancel(this)
        try {
          if (tunnelRequest != null) {
            val tunnelResult = connectTunnel()
    
            // Tunnel didn't work. Start it all again.
            if (tunnelResult.nextPlan != null || tunnelResult.throwable != null) {
              return tunnelResult
            }
          }
    
          if (route.address.sslSocketFactory != null) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

          val value = field.get(instance)
          return if (!fieldType.isInstance(value)) null else fieldType.cast(value)
        } catch (_: NoSuchFieldException) {
        }
    
        c = c.superclass
      }
    
      // Didn't find the field we wanted. As a last gasp attempt,
      // try to find the value on a delegate.
      if (fieldName != "delegate") {
        val delegate = readFieldOrNull(instance, Any::class.java, "delegate")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    internal fun Regex.matchAtPolyfill(
      input: CharSequence,
      index: Int,
    ): MatchResult? {
      val candidate = find(input, index) ?: return null
      if (candidate.range.first != index) return null // Didn't match where it should have.
      return candidate
    }
    
    @JvmField
    val EMPTY_BYTE_ARRAY: ByteArray = ByteArray(0)
    
    /** Byte order marks. */
    internal val UNICODE_BOMS =
      Options.of(
        // UTF-8.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  6. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.idn
    
    import kotlin.math.abs
    import okio.ByteString
    
    internal sealed interface MappedRange {
      val rangeStart: Int
    
      data class Constant(
        override val rangeStart: Int,
        val type: Int,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

          val compactTableMappedTo = buffer.readUtf8()
    
          assertThat(allowedByCompactTable).isEqualTo(allowedByTable)
          assertThat(compactTableMappedTo).isEqualTo(tableMappedTo)
        }
      }
    
      /** Confirm we didn't corrupt any data in code generation. */
      @Test fun compareConstructedAndGeneratedCompactTables() {
        assertThat(IDNA_MAPPING_TABLE.sections).isEqualTo(compactTable.sections)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.idn
    
    import kotlin.test.Test
    import kotlin.test.assertEquals
    import kotlin.test.assertNull
    
    class PunycodeTest {
      /** https://datatracker.ietf.org/doc/html/rfc3492#section-7.1 */
      @Test fun rfc3492Samples() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.idn
    
    import java.io.IOException
    import okio.Buffer
    import okio.BufferedSink
    import okio.BufferedSource
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    import okio.Options
    
    /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.idn
    
    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    
    /**
     * An [RFC 3492] punycode decoder for converting ASCII to Unicode domain name labels. This is
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
Back to top