Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 114 for Agent (0.01 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/HeadersTest.kt

      @Test fun ofMapAcceptsEmptyValue() {
        val headers = mapOf("User-Agent" to "").toHeaders()
        assertThat(headers.value(0)).isEqualTo("")
      }
    
      @Test fun ofMapTrimsKey() {
        val headers = mapOf(" User-Agent " to "OkHttp").toHeaders()
        assertThat(headers.name(0)).isEqualTo("User-Agent")
      }
    
      @Test fun ofMapTrimsValue() {
        val headers = mapOf("User-Agent" to " OkHttp ").toHeaders()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_header_params/test_tutorial001.py

    
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
            ("/items", None, 200, {"User-Agent": "testclient"}),
            ("/items", {"X-Header": "notvalid"}, 200, {"User-Agent": "testclient"}),
            ("/items", {"User-Agent": "FastAPI test"}, 200, {"User-Agent": "FastAPI test"}),
        ],
    )
    def test(path, headers, expected_status, expected_response, client: TestClient):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  3. .github/ISSUE_TEMPLATE/01-pkgsite.yml

          label: "What is the URL of the page with the issue?"
        validations:
          required: true
      - type: input
        id: user-agent
        attributes:
          label: "What is your user agent?"
          description: "You can find your user agent here: https://www.google.com/search?q=what+is+my+user+agent"
        validations:
          required: true
      - type: textarea
        id: screenshot
        attributes:
          label: "Screenshot"
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  4. .teamcity/src/main/kotlin/common/CommonExtensions.kt

    }
    
    fun Requirements.requiresNotEc2Agent() {
        doesNotContain("teamcity.agent.name", "ec2")
        // US region agents have name "EC2-XXX"
        doesNotContain("teamcity.agent.name", "EC2")
    }
    
    /**
     * We have some "shared" host where a Linux build agent and a Windows build agent
     * both run on the same bare metal. Some builds require exclusive access to the
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Dec 22 07:15:16 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  5. build-logic/cleanup/src/test/groovy/gradlebuild/cleanup/services/LeakingProcessKillPatternTest.groovy

    -Dorg.gradle.daemon.idletimeout=120000 -Dorg.gradle.daemon.registry.base=C:\\some\\agent\\workspace\\build\\daemon -Dorg.gradle.native.dir=C:\\some\\agent\\workspace\\intTestHomeDir\\worker-1\\native -Dorg.gradle.deprecation.trace=true -Djava.io.tmpdir=C:\\some\\agent\\workspace\\subprojects\\osgi\\build\\tmp -Dfile.encoding=windows-1252 -Dorg.gradle.classloaderscope.strict=true -ea -ea "-Dorg.gradle.appname=gradle" -classpath "C:\\some\\agent\\workspace\\subprojects\\osgi\\build\\integ test\\bin\\..\\lib\\gra...
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jul 12 03:42:46 GMT 2024
    - 14.8K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt

        assertFailsWith<NullPointerException> {
          (mapOf("User-Agent" to null) as Map<String, String>).toHeaders()
        }
      }
    
      @Test fun toMultimapGroupsHeaders() {
        val headers =
          Headers.headersOf(
            "cache-control",
            "no-cache",
            "cache-control",
            "no-store",
            "user-agent",
            "OkHttp",
          )
        val headerMap = headers.toMultimap()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue May 27 14:51:25 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  7. docs/features/interceptors.md

    OkHttpClient client = new OkHttpClient.Builder()
        .addInterceptor(new LoggingInterceptor())
        .build();
    
    Request request = new Request.Builder()
        .url("http://www.publicobject.com/helloworld.txt")
        .header("User-Agent", "OkHttp Example")
        .build();
    
    Response response = client.newCall(request).execute();
    response.body().close();
    ```
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 8.1K bytes
    - Click Count (0)
  8. .teamcity/src/main/kotlin/configurations/CheckTeamCityKotlinDSL.kt

                params {
                    // Disable jdk-provider-plugin, otherwise the JAVA_HOME will be overwritten
                    // https://github.com/gradle/teamcity-jdk-provider-plugin/blob/main/teamcity-jdk-provider-plugin-agent/src/main/kotlin/org/gradle/teamcity_jdk_provider_plugin/JdkProviderAgentLifecycleListener.kt#L22
                    param("JdkProviderEnabled", "false")
                    // should be the same version we run TeamCity with
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Jul 31 01:53:09 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  9. .teamcity/src/main/kotlin/util/WarmupEc2Agent.kt

    import vcsroots.useAbsoluteVcs
    
    object WarmupEc2Agent : BuildType({
        name = "Warmup EC2 Agent"
        id("Util_WarmupEc2Agent")
    
        vcs.useAbsoluteVcs(VersionedSettingsBranch.fromDslContext().vcsRootId())
    
        features {
            freeDiskSpace {
                // Lower the limit such that the agent work directories aren't cleaned during the AMI baking process
                requiredSpace = "100mb"
            }
        }
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Feb 12 09:12:03 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  10. internal/http/transports.go

    	}
    }
    
    // uaTransport - User-Agent  transport
    type uaTransport struct {
    	ua string
    	rt http.RoundTripper
    }
    
    func (u *uaTransport) RoundTrip(req *http.Request) (*http.Response, error) {
    	req2 := req.Clone(req.Context())
    	req2.Header.Set("User-Agent", u.ua)
    	return u.rt.RoundTrip(req2)
    }
    
    // WithUserAgent wraps an existing transport with custom User-Agent
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 08 17:51:53 GMT 2025
    - 6.5K bytes
    - Click Count (0)
Back to Top