Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 22 for ofString (0.05 seconds)

  1. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

        )
    
        val request =
          HttpRequest
            .newBuilder(server.url("/").toUri())
            .header("Accept", "text/plain")
            .build()
    
        val response = httpClient.send(request, BodyHandlers.ofString())
        assertThat(response.statusCode()).isEqualTo(200)
        assertThat(response.body()).isEqualTo("hello, Java HTTP Client")
    
        val recorded = server.takeRequest()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 25 13:16:02 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  2. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/PreparePatchRelease.kt

            val uri = "https://services.gradle.org/versions/$major"
            val request = HttpRequest.newBuilder().uri(URI(uri)).build()
            val response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString())
            if (response.statusCode() > 399) {
                throw RuntimeException("Failed to fetch versions from Gradle services: ${response.statusCode()} ${response.body()}")
            }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  3. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateFixedIssuesInReleaseNotes.kt

            if (githubToken.isPresent) {
                requestBuilder.header("Authorization", "token ${githubToken.get()}")
            }
            val response = HttpClient.newHttpClient().send(requestBuilder.build(), HttpResponse.BodyHandlers.ofString())
            if (response.statusCode() > 399) {
                throw RuntimeException("Failed to get issues: $uri ${response.statusCode()} ${response.body()}")
            }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:49:33 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  4. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt

                        header("Authorization", "token ${githubToken.get()}")
                    }
                }
                .build()
            val response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString())
            if (response.statusCode() > 399) {
                throw RuntimeException("Failed to get pull requests: $uri ${response.statusCode()} ${response.body()}")
            }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jun 24 07:54:08 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  5. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/package-info.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    
    /**
     * Provides an immutable XML processing API for Maven, offering classes and interfaces
     * for reading, manipulating, and writing XML documents in a thread-safe manner.
     * This package is used extensively for POM, settings, and other Maven configuration files.
     *
     * @since 4.0.0
     */
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 04 14:17:18 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  6. apache-maven/src/main/appended-resources/licenses/EPL-2.0.txt

    license is intended to facilitate the commercial use of the Program,
    the Contributor who includes the Program in a commercial product
    offering should do so in a manner which does not create potential
    liability for other Contributors. Therefore, if a Contributor includes
    the Program in a commercial product offering, such Contributor
    ("Commercial Contributor") hereby agrees to defend and indemnify every
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Jun 04 06:45:16 GMT 2024
    - 13.9K bytes
    - Click Count (0)
  7. apache-maven/src/main/appended-resources/licenses/EPL-1.0.txt

    intended to facilitate the commercial use of the Program, the Contributor
    who includes the Program in a commercial product offering should do so in
    a manner which does not create potential liability for other Contributors.
    Therefore, if a Contributor includes the Program in a commercial product offering,
    such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 17 05:50:12 GMT 2018
    - 11.1K bytes
    - Click Count (0)
  8. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

                        duration.entries
                            .filter { (key, _) -> key != "testProject" }
                            .map { (osString, timeInMs) ->
                                val os = Os.valueOf(osString.uppercase(Locale.US))
                                val performanceTestDuration = PerformanceTestDuration(scenario, (timeInMs as Number).toInt())
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Jan 29 01:37:22 GMT 2026
    - 17.2K bytes
    - Click Count (0)
  9. LICENSE

    must be distributed under the terms of Sections 1 and 2 above on a
    medium customarily used for software interchange.
    
      If distribution of object code is made by offering access to copy
    from a designated place, then offering equivalent access to copy the
    source code from the same place satisfies the requirement to
    distribute the source code, even though third parties are not
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Mon Jan 18 20:25:38 GMT 2016
    - 25.8K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/generate-clients.md

    Their sponsorship also demonstrates a strong commitment to the FastAPI **community** (you), showing that they care not only about offering a **great service** but also about supporting a **robust and thriving framework**, FastAPI. 🙇
    
    For example, you might want to try:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9.7K bytes
    - Click Count (1)
Back to Top