Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 799 for tenders (0.05 seconds)

  1. docs_src/security/tutorial005_an_py310.py

        else:
            authenticate_value = "Bearer"
        credentials_exception = HTTPException(
            status_code=status.HTTP_401_UNAUTHORIZED,
            detail="Could not validate credentials",
            headers={"WWW-Authenticate": authenticate_value},
        )
        try:
            payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
            username = payload.get("sub")
            if username is None:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 02:57:38 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  2. docs_src/security/tutorial005_an_py39.py

        else:
            authenticate_value = "Bearer"
        credentials_exception = HTTPException(
            status_code=status.HTTP_401_UNAUTHORIZED,
            detail="Could not validate credentials",
            headers={"WWW-Authenticate": authenticate_value},
        )
        try:
            payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
            username = payload.get("sub")
            if username is None:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 02:57:38 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  3. internal/etag/etag.go

    			n++
    		}
    	}
    	etag := append(h.Sum(nil), '-')
    	return strconv.AppendInt(etag, n, 10)
    }
    
    // Set adds the ETag to the HTTP headers. It overwrites any
    // existing ETag entry.
    //
    // Due to legacy S3 clients, that make incorrect assumptions
    // about HTTP headers, Set should be used instead of
    // http.Header.Set(...). Otherwise, some S3 clients will not
    // able to extract the ETag.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri May 16 14:27:42 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  4. internal/event/target/amqp.go

    	if err != nil {
    		return err
    	}
    
    	headers := make(amqp091.Table)
    	// Add more information here as required, but be aware to not overload headers
    	headers["minio-bucket"] = eventData.S3.Bucket.Name
    	headers["minio-event"] = eventData.EventName.String()
    
    	if err = ch.ExchangeDeclare(target.args.Exchange, target.args.ExchangeType, target.args.Durable,
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 21 04:25:07 GMT 2025
    - 10K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_response_directly/test_tutorial002.py

        <Body>
            You'll have to use soap here.
        </Body>
        </shampoo>
        """
    
        response = client.get("/legacy/")
        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "application/xml"
        assert response.text == expected_content
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  6. scripts/notify_translations.py

            "comment_id": comment_id,
            "body": body,
        }
        response = httpx.post(
            github_graphql_url,
            headers=headers,
            timeout=settings.httpx_timeout,
            json={"query": query, "variables": variables, "operationName": "Q"},
        )
        if response.status_code != 200:
            logging.error(
                f"Response was not 200, after: {after}, category_id: {category_id}"
            )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  7. docs/changelogs/changelog_1x.md

       certain eviction scenarios, leading to dropped response headers.
    
    ## Version 1.5.1
    
    _2014-03-11_
    
     * Fix 1.5.0 regression where connections should not have been recycled.
     * Fix 1.5.0 regression where transparent Gzip was broken by attempting to
       recover from another I/O failure.
     * Fix problems where spdy/3.1 headers may not have been compressed properly.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 6.4K bytes
    - Click Count (0)
  8. impl/maven-core/src/test/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactoryTest.java

            Map<String, String> headers = (Map<String, String>) systemSessionFactory
                    .newRepositorySession(request)
                    .getConfigProperties()
                    .get(ConfigurationProperties.HTTP_HEADERS + "." + server.getId());
            assertNotNull(headers);
            assertEquals(1, headers.size());
            assertEquals("value", headers.get("header"));
        }
    
        @Test
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 19.1K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/handling-errors.md

    ///
    
    ## Agrega headers personalizados { #add-custom-headers }
    
    Existen algunas situaciones en las que es útil poder agregar headers personalizados al error HTTP. Por ejemplo, para algunos tipos de seguridad.
    
    Probablemente no necesitarás usarlos directamente en tu código.
    
    Pero en caso de que los necesites para un escenario avanzado, puedes agregar headers personalizados:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  10. fastapi/exceptions.py

                    """
                ),
            ] = None,
            headers: Annotated[
                Optional[dict[str, str]],
                Doc(
                    """
                    Any headers to send to the client in the response.
                    """
                ),
            ] = None,
        ) -> None:
            super().__init__(status_code=status_code, detail=detail, headers=headers)
    
    
    class WebSocketException(StarletteWebSocketException):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 6.8K bytes
    - Click Count (0)
Back to Top