Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 226 for agent (0.14 sec)

  1. 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):
        response = client.get(path, headers=headers)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_header_params/test_tutorial001_py310.py

    @needs_py310
    @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):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4K bytes
    - Viewed (0)
  3. 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();
    ```
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/compare/sds/util.go

    // SecretItemDiff represents a secret that has been diffed between nodeagent and proxy
    type SecretItemDiff struct {
    	Agent string `json:"agent"`
    	Proxy string `json:"proxy"`
    	SecretItem
    }
    
    // SecretItem is an intermediate representation of secrets, used to provide a common
    // format between the envoy proxy secrets and node agent output which can be diffed
    type SecretItem struct {
    	Name        string `json:"resource_name"`
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jun 06 15:14:48 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  5. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

        assertThat(request.url.toString()).isEqualTo("http://example.com/")
        assertThat(request.header("User-Agent")).isEqualTo("foo")
        assertThat(request.body).isNull()
      }
    
      @Test
      fun defaultUserAgent() {
        val request = fromArgs("http://example.com").createRequest()
        assertThat(request.header("User-Agent")!!).startsWith("okcurl/")
      }
    
      @Test
      fun headerSplitWithDate() {
        val request =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/header-params.md

    But a variable like `user-agent` is invalid in Python.
    
    So, by default, `Header` will convert the parameter names characters from underscore (`_`) to hyphen (`-`) to extract and document the headers.
    
    Also, HTTP headers are case-insensitive, so, you can declare them with standard Python style (also known as "snake_case").
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/AutobahnTester.kt

          throw RuntimeException(failure)
        }
    
        return countRef.get()
      }
    
      private fun updateReports() {
        val latch = CountDownLatch(1)
        newWebSocket(
          "/updateReports?agent=$USER_AGENT",
          object : WebSocketListener() {
            override fun onClosing(
              webSocket: WebSocket,
              code: Int,
              reason: String,
            ) {
              webSocket.close(1000, null)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. .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"
            }
        }
    
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Tue Dec 05 00:08:14 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  9. manifests/charts/istiod-remote/templates/istiod-injector-configmap.yaml

          grpc-simple: |
    {{ .Files.Get "files/grpc-simple.yaml" | trim | indent 8 }}
    {{- end }}
    {{- if not (hasKey .Values.sidecarInjectorWebhook.templates "grpc-agent") }}
          grpc-agent: |
    {{ .Files.Get "files/grpc-agent.yaml" | trim | indent 8 }}
    {{- end }}
    {{- if not (hasKey .Values.sidecarInjectorWebhook.templates "waypoint") }}
          waypoint: |
    {{ .Files.Get "files/waypoint.yaml" | trim | indent 8 }}
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/config/exentity/CrawlingConfig.java

                public static final String PROXY_PORT = HcHttpClient.PROXY_PORT_PROPERTY;
                public static final String PROXY_HOST = HcHttpClient.PROXY_HOST_PROPERTY;
                public static final String USER_AGENT = HcHttpClient.USER_AGENT_PROPERTY;
            }
    
            // xpath.*
            public static class XPath {
                public static final String DEFAULT_LANG = "default.lang";
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.5K bytes
    - Viewed (0)
Back to top