Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 667 for headless (0.08 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

      return millis.toInt()
    }
    
    internal fun List<Header>.toHeaders(): Headers {
      val builder = Headers.Builder()
      for ((name, value) in this) {
        builder.addLenient(name.utf8(), value.utf8())
      }
      return builder.build()
    }
    
    internal fun Headers.toHeaderList(): List<Header> =
      (0 until size).map {
        Header(name(it), value(it))
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 10.2K bytes
    - Click Count (1)
  2. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

        )
    
        val call = client.newCall(Request(server.url("/")))
        call.execute().use { response ->
          assertThat(response.headers["Content-Length"]).isNull()
          assertThat(response.body.source().readUtf8()).isEqualTo("Hello")
          assertThat(response.trailers()).isEqualTo(Headers.EMPTY)
        }
      }
    
      @Test
      fun cancelWhileReadingTrailersHttp1() {
        cancelWhileReadingTrailers(Protocol.HTTP_1_1)
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 08 21:45:04 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  3. tests/test_custom_swagger_ui_redirect.py

    async def read_items():
        return {"id": "foo"}
    
    
    client = TestClient(app)
    
    
    def test_swagger_ui():
        response = client.get("/docs")
        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "text/html; charset=utf-8"
        assert "swagger-ui-dist" in response.text
        print(client.base_url)
        assert (
            f"oauth2RedirectUrl: window.location.origin + '{swagger_ui_oauth2_redirect_url}'"
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Apr 08 04:37:38 GMT 2020
    - 1.1K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/HeadersRequestTest.kt

        val response = readHttp2HeadersList(headerBlock, Protocol.HTTP_2).request(request).build()
        val headers = response.headers
        assertThat(headers.size).isEqualTo(1)
        assertThat(headers.name(0)).isEqualTo(":version")
        assertThat(headers.value(0)).isEqualTo("HTTP/1.1")
      }
    
      @Test fun http2HeadersListDropsForbiddenHeadersHttp2() {
        val request =
          Request
            .Builder()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  5. cmd/signature-v2.go

    }
    
    // Return canonical headers.
    func canonicalizedAmzHeadersV2(headers http.Header) string {
    	var keys []string
    	keyval := make(map[string]string, len(headers))
    	for key := range headers {
    		lkey := strings.ToLower(key)
    		if !strings.HasPrefix(lkey, "x-amz-") {
    			continue
    		}
    		keys = append(keys, lkey)
    		keyval[lkey] = strings.Join(headers[key], ",")
    	}
    	sort.Strings(keys)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  6. tests/test_security_oauth2_authorization_code_bearer.py

    
    def test_incorrect_token():
        response = client.get("/items", headers={"Authorization": "Non-existent testtoken"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_token():
        response = client.get("/items", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.3K bytes
    - Click Count (0)
  7. tests/test_security_http_base.py

        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_base():
        response = client.get("/users/me", headers={"Authorization": "Other foobar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"scheme": "Other", "credentials": "foobar"}
    
    
    def test_security_http_base_no_credentials():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/cors/DefaultCorsHandler.java

        }
    
        /**
         * Processes the CORS request by adding standard CORS headers to the response.
         * Headers include allowed origin, methods, headers, max age, and credentials setting.
         *
         * @param origin the origin of the request
         * @param request the servlet request
         * @param response the servlet response to add CORS headers to
         */
        @Override
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 3K bytes
    - Click Count (0)
  9. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

      mockwebserver3.PushPromise(
        method = method,
        path = path,
        headers = headers,
        response = response.wrap(),
      )
    
    internal fun mockwebserver3.RecordedRequest.unwrap(): RecordedRequest =
      RecordedRequest(
        requestLine = requestLine,
        headers = headers,
        chunkSizes = chunkSizes ?: listOf(),
        bodySize = bodySize,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 03 13:16:34 GMT 2025
    - 4.1K bytes
    - Click Count (1)
  10. docs/pt/docs/tutorial/handling-errors.md

    ///
    
    ## Adicione headers customizados { #add-custom-headers }
    
    Há certas situações em que é bastante útil poder adicionar headers customizados no HTTP error. Exemplo disso seria adicionar headers customizados para tipos de segurança.
    
    Você provavelmente não precisará utilizar esses headers diretamente no seu código.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 10.2K bytes
    - Click Count (0)
Back to Top