Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 729 for Tenders (0.05 seconds)

  1. docs_src/custom_request_and_route/tutorial001_an_py310.py

    from fastapi.routing import APIRoute
    
    
    class GzipRequest(Request):
        async def body(self) -> bytes:
            if not hasattr(self, "_body"):
                body = await super().body()
                if "gzip" in self.headers.getlist("Content-Encoding"):
                    body = gzip.decompress(body)
                self._body = body
            return self._body
    
    
    class GzipRoute(APIRoute):
        def get_route_handler(self) -> Callable:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 1015 bytes
    - Click Count (0)
  2. maven-tests/src/test/java/com/squareup/okhttp3/maventest/AppTest.java

    import mockwebserver3.MockWebServer;
    import okhttp3.Headers;
    import org.junit.Test;
    
    import java.io.IOException;
    
    /**
     * Unit test for simple App.
     */
    public class AppTest {
      private final MockWebServer mockWebServer = new MockWebServer();
    
      @Test
      public void testApp() throws IOException {
        mockWebServer.enqueue(new MockResponse(200, Headers.of(), "Hello, Maven!"));
        mockWebServer.start();
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Jul 12 12:05:57 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  3. internal/event/targetlist_test.go

    package event
    
    import (
    	"crypto/rand"
    	"errors"
    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/minio/minio/internal/store"
    )
    
    type ExampleTarget struct {
    	id       TargetID
    	sendErr  bool
    	closeErr bool
    }
    
    func (target ExampleTarget) ID() TargetID {
    	return target.id
    }
    
    // Save - Sends event directly without persisting.
    func (target ExampleTarget) Save(eventData Event) error {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 6K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

            val gzipSource = GzipSource(responseBody.source())
            val strippedHeaders =
              networkResponse.headers
                .newBuilder()
                .removeAll("Content-Encoding")
                .removeAll("Content-Length")
                .build()
            responseBuilder.headers(strippedHeaders)
            val contentType = networkResponse.header("Content-Type")
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. tests/test_security_api_key_header.py

        response = client.get("/users/me", headers={"key": "secret"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "secret"}
    
    
    def test_security_api_key_no_key():
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "APIKey"
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  6. tests/test_security_api_key_header_description.py

        response = client.get("/users/me", headers={"key": "secret"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "secret"}
    
    
    def test_security_api_key_no_key():
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "APIKey"
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  7. docs_src/security/tutorial005_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: str = 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)
  8. docs/ru/llm-prompt.md

    * completion (meaning code auto-completion): автозавершение
    * editor (meaning component of IDE): редактор кода
    * adopt (meaning start to use): использовать (or `начать использовать`)
    * headers (meaning HTTP-headers): HTTP-заголовки
    * cookie sessions: сессии с использованием cookie
    * tested (adjective): протестированный
    * middleware: middleware (don't translate, but add `промежуточный слой` if clarification is needed)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Oct 06 11:09:58 GMT 2025
    - 6K bytes
    - Click Count (0)
  9. tests/test_security_api_key_cookie.py

        client = TestClient(app)
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "APIKey"
    
    
    def test_openapi_schema():
        client = TestClient(app)
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/custom-response.md

    * `path` - The file path to the file to stream.
    * `headers` - Any custom headers to include, as a dictionary.
    * `media_type` - A string giving the media type. If unset, the filename or path will be used to infer a media type.
    * `filename` - If set, this will be included in the response `Content-Disposition`.
    
    File responses will include appropriate `Content-Length`, `Last-Modified` and `ETag` headers.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 12.4K bytes
    - Click Count (0)
Back to Top