Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for ofString (0.16 sec)

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

            .build(),
        )
    
        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()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. 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()}")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 16 05:03:11 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  3. src/crypto/x509/internal/macos/corefoundation.go

    // StringToCFString returns a copy of the UTF-8 contents of s as a new CFString.
    func StringToCFString(s string) CFString {
    	p := unsafe.Pointer(unsafe.StringData(s))
    	ret := syscall(abi.FuncPCABI0(x509_CFStringCreateWithBytes_trampoline), kCFAllocatorDefault, uintptr(p),
    		uintptr(len(s)), uintptr(kCFStringEncodingUTF8), 0 /* isExternalRepresentation */, 0)
    	runtime.KeepAlive(p)
    	return CFString(ret)
    }
    func x509_CFStringCreateWithBytes_trampoline()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 21 20:05:17 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  4. src/testing/quick/quick_test.go

    	reportError("fPtrAlias", CheckEqual(fPtrAlias, fPtrAlias, nil), t)
    	reportError("fSlice", CheckEqual(fSlice, fSlice, nil), t)
    	reportError("fSliceAlias", CheckEqual(fSliceAlias, fSliceAlias, nil), t)
    	reportError("fString", CheckEqual(fString, fString, nil), t)
    	reportError("fStringAlias", CheckEqual(fStringAlias, fStringAlias, nil), t)
    	reportError("fStruct", CheckEqual(fStruct, fStruct, nil), t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 9K bytes
    - Viewed (0)
  5. 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
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Sep 17 05:50:12 UTC 2018
    - 11.1K bytes
    - Viewed (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
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 04 06:45:16 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

                    val testProject = duration["testProject"] as String
                    duration.entries
                        .filter { (key, _) -> key != "testProject" }
                        .map { (osString, timeInMs) ->
                            val os = Os.valueOf(osString.uppercase(Locale.US))
                            val performanceTestDuration = PerformanceTestDuration(scenario, timeInMs as Int)
                            os to (testProject to performanceTestDuration)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 19 11:22:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_darwin_arm64.c

    #include <unistd.h>
    #include <stdlib.h>
    
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    #include <TargetConditionals.h>
    
    #if TARGET_OS_IPHONE
    #include <CoreFoundation/CFBundle.h>
    #include <CoreFoundation/CFString.h>
    #endif
    
    static void *threadentry(void*);
    static void (*setg_gcc)(void*);
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	pthread_attr_t attr;
    	sigset_t ign, oset;
    	pthread_t p;
    	size_t size;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/structuring/multi_project_configuration_and_execution.adoc

    - Avoid dynamically changing other projects' configurations during execution.
    
    As Gradle evolves, it aims to provide features that leverage decoupled projects while offering solutions for common use cases like configuration injection without introducing coupling.
    
    [[sec:parallel_execution]]
    == Parallel projects
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 21:08:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. architecture/networking/controllers.md

      In general, Istio does not fail on missing CRDs and prefers to treat these as if there were just zero resources for that client.
      The `NewDelayedInformer` abstracts that entirely, offering the same API as normal `kclient.Client`.
    * Simple object filtering. Beyond just static filters on objects, `kclient` supports _dynamic filters_ that can change at runtime.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 09 17:41:25 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top