Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 65 for formik (0.33 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

         * Apply inbound settings and send an acknowledgement to the peer that provided them.
         *
         * We need to apply the settings and ack them atomically. This is because some HTTP/2
         * implementations (nghttp2) forbid peers from taking advantage of settings before they have
         * acknowledged! In particular, we shouldn't send frames that assume a new `initialWindowSize`
         * until we send the frame that acknowledges this new size.
         *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_2x.md

        parens, and other characters.
     *  Fix: Relax `FormEncodingBuilder` to support building empty forms.
     *  Fix: Timeouts throw `SocketTimeoutException`, not `InterruptedIOException`.
     *  Fix: Change `MockWebServer` to use the same logic as OkHttp when determining
        whether an HTTP request permits a body.
     *  Fix: `HttpUrl` now uses the canonical form for IPv6 addresses.
     *  Fix: Use `HttpUrl` internally.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

          apply {
            // Create a private copy of the list.
            val protocolsCopy = protocols.toMutableList()
    
            // Validate that the list has everything we require and nothing we forbid.
            require(Protocol.H2_PRIOR_KNOWLEDGE in protocolsCopy || HTTP_1_1 in protocolsCopy) {
              "protocols must contain h2_prior_knowledge or http/1.1: $protocolsCopy"
            }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/RecordedResponse.kt

      private fun assertDateInRange(
        minimum: Long,
        actual: Long,
        maximum: Long,
      ) {
        assertThat(actual, "${format(minimum)} <= ${format(actual)} <= ${format(maximum)}")
          .isBetween(minimum, maximum)
      }
    
      private fun format(time: Long) = SimpleDateFormat("HH:mm:ss.SSS").format(Date(time))
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

        val direction = if (inbound) "<<" else ">>"
        return format(
          "%s 0x%08x %5d %-13s %d",
          direction,
          streamId,
          length,
          formattedType,
          windowSizeIncrement,
        )
      }
    
      internal fun formattedType(type: Int): String = if (type < FRAME_NAMES.size) FRAME_NAMES[type] else format("0x%02x", type)
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/Progress.java

                  System.out.println("content-length: unknown");
                } else {
                  System.out.format("content-length: %d\n", contentLength);
                }
              }
    
              System.out.println(bytesRead);
    
              if (contentLength != -1) {
                System.out.format("%d%% done\n", (100 * bytesRead) / contentLength);
              }
            }
          }
        };
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 3.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

    private val TYPE_SUBTYPE = Regex("$TOKEN/$TOKEN")
    private val PARAMETER = Regex(";\\s*(?:$TOKEN=(?:$TOKEN|$QUOTED))?")
    
    /**
     * Returns a media type for this string.
     *
     * @throws IllegalArgumentException if this is not a well-formed media type.
     */
    internal fun String.commonToMediaType(): MediaType {
      val typeSubtype: MatchResult =
        TYPE_SUBTYPE.matchAtPolyfill(this, 0)
          ?: throw IllegalArgumentException("No subtype found for: \"$this\"")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  8. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt

     * limitations under the License.
     */
    package okhttp3.internal.http2.hpackjson
    
    import okhttp3.internal.http2.Header
    import okio.ByteString
    
    /**
     * Representation of an individual case (set of headers and wire format). There are many cases for a
     * single story.  This class is used reflectively with Moshi to parse stories.
     */
    data class Case(
      val seqno: Int = 0,
      val wire: ByteString? = null,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 23 10:26:25 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt

      } catch (e: GeneralSecurityException) {
        throw IllegalArgumentException("failed to decode certificate", e)
      }
    }
    
    /**
     * Returns the certificate encoded in [PEM format][rfc_7468].
     *
     * [rfc_7468]: https://tools.ietf.org/html/rfc7468
     */
    fun X509Certificate.certificatePem(): String {
      return buildString {
        append("-----BEGIN CERTIFICATE-----\n")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (2)
  10. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

              sink.writeUtf8("Numbers\n");
              sink.writeUtf8("-------\n");
              for (int i = 2; i <= 997; i++) {
                System.out.println(i);
                Thread.sleep(10);
                sink.writeUtf8(String.format(" * %s = %s\n", i, factor(i)));
              }
              sink.close();
            } catch (IOException | InterruptedException e) {
              e.printStackTrace();
            }
          }
    
          private String factor(int n) {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Jul 06 03:18:15 GMT 2018
    - 3.1K bytes
    - Viewed (0)
Back to top