Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1141 - 1150 of 1,403 for CONTENT (0.14 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

          }
        } catch (_: FileNotFoundException) {
          null
        }
    
      fun writeFile(
        file: Path,
        content: String,
      ) {
        file.parent?.let {
          filesystem.createDirectories(it)
        }
        filesystem.write(file) {
          writeUtf8(content)
        }
      }
    
      private fun generateSomeGarbageFiles() {
        val dir1 = cacheDir / "dir1"
        val dir2 = dir1 / "dir2"
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 59.4K bytes
    - Click Count (0)
  2. cmd/generic-handlers.go

    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		header := w.Header()
    		header.Set("X-XSS-Protection", "1; mode=block")                                // Prevents against XSS attacks
    		header.Set("X-Content-Type-Options", "nosniff")                                // Prevent mime-sniff
    		header.Set("Strict-Transport-Security", "max-age=31536000; includeSubDomains") // HSTS mitigates variants of MITM attacks
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 20.7K bytes
    - Click Count (1)
  3. tests/test_return_none_stringified_annotations.py

    
    def test_no_content():
        app = FastAPI()
    
        @app.get("/no-content", status_code=http.HTTPStatus.NO_CONTENT)
        def return_no_content() -> "None":
            return
    
        client = TestClient(app)
        response = client.get("/no-content")
        assert response.status_code == http.HTTPStatus.NO_CONTENT, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Sep 20 18:44:43 GMT 2025
    - 431 bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

            return paramMap.getAsString(key, defaultValue);
        }
    
        /**
         * Adds a document to the search index by crawling the specified URL and processing the content.
         * This method handles recursive crawling with depth and access count limits, follows redirects,
         * and processes child URLs discovered during crawling.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 29.7K bytes
    - Click Count (3)
  5. tests/test_additional_responses_response_class.py

                    "/a": {
                        "get": {
                            "responses": {
                                "500": {
                                    "description": "Error",
                                    "content": {
                                        "application/vnd.api+json": {
                                            "schema": {
                                                "$ref": "#/components/schemas/JsonApiError"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_bigger_applications/test_main.py

                                    "description": "Successful Response",
                                    "content": {"application/json": {"schema": {}}},
                                },
                                "422": {
                                    "description": "Validation Error",
                                    "content": {
                                        "application/json": {
                                            "schema": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  7. docs_src/json_base64_bytes/tutorial001_py310.py

            "val_json_bytes": "base64",
            "ser_json_bytes": "base64",
        }
    
    
    app = FastAPI()
    
    
    @app.post("/data")
    def post_data(body: DataInput):
        content = body.data.decode("utf-8")
        return {"description": body.description, "content": content}
    
    
    @app.get("/data")
    def get_data() -> DataOutput:
        data = "hello".encode("utf-8")
        return DataOutput(description="A plumbus", data=data)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 892 bytes
    - Click Count (0)
  8. cmd/batch-handlers.go

    	if err != nil {
    		return err
    	}
    
    	if token != "" {
    		req.Header.Set("Authorization", token)
    	}
    	req.Header.Set("Content-Type", "application/json")
    
    	clnt := http.Client{Transport: getRemoteInstanceTransport()}
    	resp, err := clnt.Do(req)
    	if err != nil {
    		return err
    	}
    
    	xhttp.DrainBody(resp.Body)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 63.5K bytes
    - Click Count (1)
  9. docs/ru/docs/advanced/custom-response.md

    Его можно возвращать напрямую.
    
    Он принимает следующие параметры:
    
    - `content` — `str` или `bytes`.
    - `status_code` — целое число, HTTP статус-код.
    - `headers` — словарь строк.
    - `media_type` — строка, задающая тип содержимого. Например, `"text/html"`.
    
    FastAPI (фактически Starlette) автоматически добавит заголовок Content-Length. Также будет добавлен заголовок Content-Type, основанный на `media_type` и с добавлением charset для текстовых типов.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 17.6K bytes
    - Click Count (0)
  10. docs/uk/docs/advanced/custom-response.md

    Ви можете повертати його безпосередньо.
    
    Він приймає такі параметри:
    
    - `content` - `str` або `bytes`.
    - `status_code` - `int` - код статусу HTTP.
    - `headers` - `dict` строк.
    - `media_type` - `str`, що задає медіа-тип, напр. `"text/html"`.
    
    FastAPI (насправді Starlette) автоматично додасть заголовок Content-Length. Також буде додано заголовок Content-Type на основі `media_type` з додаванням набору символів для текстових типів.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 17K bytes
    - Click Count (0)
Back to Top