Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 144 for reqheader (0.23 sec)

  1. src/main/java/jcifs/http/NetworkExplorer.java

                url = file.getLocator().getPath();
                resp.setContentType("text/plain");
                resp.setContentType(URLConnection.guessContentTypeFromName(url));
                resp.setHeader("Content-Length", file.length() + "");
                resp.setHeader("Accept-Ranges", "Bytes");
    
                while ( ( n = in.read(buf) ) != -1 ) {
                    out.write(buf, 0, n);
                }
            }
        }
    
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 21.3K bytes
    - Viewed (0)
  2. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

      }
    
      @Test
      fun event() {
        server.enqueue(
          MockResponse.Builder()
            .body(
              """
              |data: hey
              |
              |
              """.trimMargin(),
            ).setHeader("content-type", "text/event-stream")
            .build(),
        )
        val source = newEventSource()
        assertThat(source.request().url.encodedPath).isEqualTo("/")
        listener.assertOpen()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. pkg/kubelet/lifecycle/handlers_test.go

    			}
    		})
    	}
    }
    
    func TestRunHTTPHandler(t *testing.T) {
    	type expected struct {
    		OldURL    string
    		OldHeader http.Header
    		NewURL    string
    		NewHeader http.Header
    	}
    
    	tests := []struct {
    		Name     string
    		PodIP    string
    		HTTPGet  *v1.HTTPGetAction
    		Expected expected
    	}{
    		{
    			Name:  "missing pod IP",
    			PodIP: "",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

       * ```
       *
       * You may also specify a tag class like [DerHeader.TAG_CLASS_APPLICATION]. The default tag class
       * is [DerHeader.TAG_CLASS_CONTEXT_SPECIFIC].
       *
       * ```
       * Point ::= SEQUENCE {
       *   x [APPLICATION 0] INTEGER OPTIONAL,
       *   y [APPLICATION 1] INTEGER OPTIONAL
       * }
       * ```
       */
      fun withTag(
        tagClass: Int = DerHeader.TAG_CLASS_CONTEXT_SPECIFIC,
        tag: Long,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. cmd/http-tracer.go

    		// Calculate input body size with headers
    		reqHeaders := r.Header.Clone()
    		reqHeaders.Set("Host", r.Host)
    		if len(r.TransferEncoding) == 0 {
    			reqHeaders.Set("Content-Length", strconv.Itoa(int(r.ContentLength)))
    		} else {
    			reqHeaders.Set("Transfer-Encoding", strings.Join(r.TransferEncoding, ","))
    		}
    		inputBytes := reqRecorder.Size()
    		for k, v := range reqHeaders {
    			inputBytes += len(k) + len(v)
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

          name = name,
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 16L,
          codec = codec,
        )
      }
    
      /** Returns an adapter that decodes as the first of a list of available types. */
      fun choice(vararg choices: DerAdapter<*>): DerAdapter<Pair<DerAdapter<*>, Any?>> {
        return object : DerAdapter<Pair<DerAdapter<*>, Any?>> {
          override fun matches(header: DerHeader): Boolean = true
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/limit_test.go

    		yamlBody := []byte(fmt.Sprintf(`
    apiVersion: %s
    kind: %s
    metadata:
      name: test
    values: `+strings.Repeat("[", 3*1024*1024), apiVersion, kind))
    
    		_, err := rest.Post().
    			SetHeader("Accept", "application/yaml").
    			SetHeader("Content-Type", "application/yaml").
    			AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name, noxuDefinition.Spec.Names.Plural).
    			Body(yamlBody).
    			DoRaw(context.TODO())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 19:34:41 UTC 2021
    - 8K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

                if (beforeHandle) {
                    beforeHandle.execute(request)
                }
                try {
                    if (expectedUserAgent != null) {
                        String receivedUserAgent = request.getHeader("User-Agent")
                        if (!expectedUserAgent.matches(receivedUserAgent)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  9. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpResponseResource.java

            String responseHeader = response.getHeader(HttpHeaders.LAST_MODIFIED);
            if (responseHeader == null) {
                return new Date(0);
            }
            try {
                return DateUtils.parseDate(responseHeader);
            } catch (Exception e) {
                return new Date(0);
            }
        }
    
        private String getFilename() {
            String disposition = response.getHeader("Content-Disposition");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NtlmHttpFilter.java

                throws IOException, ServletException {
            Address dc;
            String msg;
            NtlmPasswordAuthentication ntlm = null;
            msg = req.getHeader("Authorization");
            boolean offerBasic = this.enableBasic && ( this.insecureBasic || req.isSecure() );
    
            if ( msg != null && ( msg.startsWith("NTLM ") || ( offerBasic && msg.startsWith("Basic ") ) ) ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.8K bytes
    - Viewed (0)
Back to top