Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 812 for rjsonp (0.09 sec)

  1. docs/em/docs/advanced/custom-response.md

    ## ๐Ÿ›ƒ ๐Ÿ“จ ๐ŸŽ“
    
    ๐Ÿ‘† ๐Ÿ’ช โœ ๐Ÿ‘† ๐Ÿ‘ ๐Ÿ›ƒ ๐Ÿ“จ ๐ŸŽ“, ๐Ÿ˜– โšช๏ธโžก๏ธ `Response` & โš™๏ธ โšซ๏ธ.
    
    ๐Ÿ–ผ, โžก๏ธ ๐Ÿ’ฌ ๐Ÿ‘ˆ ๐Ÿ‘† ๐Ÿ’š โš™๏ธ <a href="https://github.com/ijl/orjson" class="external-link" target="_blank">`orjson`</a>, โœ‹๏ธ โฎ๏ธ ๐Ÿ›ƒ โš’ ๐Ÿšซ โš™๏ธ ๐Ÿ”Œ `ORJSONResponse` ๐ŸŽ“.
    
    โžก๏ธ ๐Ÿ’ฌ ๐Ÿ‘† ๐Ÿ’š โšซ๏ธ ๐Ÿ“จ ๐Ÿ”‚ &amp; ๐Ÿ“ ๐ŸŽป, ๐Ÿ‘† ๐Ÿ’š โš™๏ธ Orjson ๐ŸŽ› `orjson.OPT_INDENT_2`.
    
    ๐Ÿ‘† ๐Ÿ’ช โœ `CustomORJSONResponse`. ๐Ÿ‘‘ ๐Ÿ‘œ ๐Ÿ‘† โœ”๏ธ โœ `Response.render(content)` ๐Ÿ‘ฉโ€๐Ÿ”ฌ ๐Ÿ‘ˆ ๐Ÿ“จ ๐ŸŽš `bytes`:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. fastapi/responses.py

    try:
        import ujson
    except ImportError:  # pragma: nocover
        ujson = None  # type: ignore
    
    
    try:
        import orjson
    except ImportError:  # pragma: nocover
        orjson = None  # type: ignore
    
    
    class UJSONResponse(JSONResponse):
        """
        JSON response using the high-performance ujson library to serialize data to JSON.
    
        Read more about it in the
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. pyproject.toml

        "itsdangerous >=1.1.0",
        # For Starlette's schema generation, would not be used with FastAPI
        "pyyaml >=5.3.1",
        # For UJSONResponse
        "ujson >=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0",
        # For ORJSONResponse
        "orjson >=3.2.1",
        # To validate email fields
        "email-validator >=2.0.0",
        # Uvicorn with uvloop
        "uvicorn[standard] >=0.12.0",
        # Settings management
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 14:19:56 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. docs/zh/docs/advanced/custom-response.md

    ### `JSONResponse`
    
    ๆŽฅๅ—ๆ•ฐๆฎๅนถ่ฟ”ๅ›žไธ€ไธช `application/json` ็ผ–็ ็š„ๅ“ๅบ”ใ€‚
    
    ๅฆ‚ไธŠๆ–‡ๆ‰€่ฟฐ๏ผŒ่ฟ™ๆ˜ฏ **FastAPI** ไธญไฝฟ็”จ็š„้ป˜่ฎคๅ“ๅบ”ใ€‚
    
    ### `ORJSONResponse`
    
    ๅฆ‚ไธŠๆ–‡ๆ‰€่ฟฐ๏ผŒ`ORJSONResponse` ๆ˜ฏไธ€ไธชไฝฟ็”จ <a href="https://github.com/ijl/orjson" class="external-link" target="_blank">`orjson`</a> ็š„ๅฟซ้€Ÿ็š„ๅฏ้€‰ JSON ๅ“ๅบ”ใ€‚
    
    
    ### `UJSONResponse`
    
    `UJSONResponse` ๆ˜ฏไธ€ไธชไฝฟ็”จ <a href="https://github.com/ultrajson/ultrajson" class="external-link" target="_blank">`ujson`</a> ็š„ๅฏ้€‰ JSON ๅ“ๅบ”ใ€‚
    
    /// warning | "่ญฆๅ‘Š"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. .github/renovate.json

    {
      "$schema": "https://docs.renovatebot.com/renovate-schema.json",
      "extends": [
        "config:base",
        ":dependencyDashboard",
        "schedule:weekly"
      ],
      "labels": ["renovate"],
      "ignoreDeps": [
        "com.squareup.okhttp3:okhttp",
        "com.squareup.okhttp3:okhttp-tls",
        "com.squareup.okhttp3:mockwebserver"
      ],
      "packageRules": [
        {
          "matchPackagePatterns": [
            "biz.*"
          ],
          "groupName": "bnd"
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jun 22 16:18:31 UTC 2024
    - 956 bytes
    - Viewed (0)
  6. docs/debugging/inspect/main.go

    	}
    
    	var inputs []string
    
    	// Parse parameters
    	switch {
    	case *stdin:
    		// Parse 'mc support inspect --json' output
    		input := struct {
    			File string `json:"file"`
    			Key  string `json:"key"`
    		}{}
    		got, err := io.ReadAll(os.Stdin)
    		if err != nil {
    			fatalErr(err)
    		}
    		fatalErr(json.Unmarshal(got, &input))
    		inputs = []string{input.File}
    		*keyHex = input.Key
    	case len(flag.Args()) == 1:
    		var err error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt

     */
    @CacheableTask
    abstract class AbstractAcceptedApiChangesMaintenanceTask : DefaultTask() {
    
        /**
         * A directory that contains jsons with accepted API changes.
         * Any json is a directory is considered to contain accepted API changes.
         */
        @get:InputDirectory
        @get:PathSensitive(PathSensitivity.RELATIVE)
        abstract val apiChangesDirectory: DirectoryProperty
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateAgpVersions.kt

    import org.gradle.api.tasks.Internal
    import org.gradle.api.tasks.TaskAction
    import org.gradle.api.tasks.UntrackedTask
    import org.gradle.internal.util.PropertiesUtils
    import org.gradle.util.internal.VersionNumber
    import org.jsoup.Jsoup
    import org.w3c.dom.Element
    import java.util.Properties
    import javax.xml.parsers.DocumentBuilderFactory
    
    
    /**
     * Fetch the latest AGP versions and write a properties file.
     * Never up-to-date, non-cacheable.
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 02 09:17:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. docs/ko/docs/advanced/response-cookies.md

    ```Python hl_lines="1  18"
    {!../../docs_src/response_directly/tutorial002.py!}
    ```
    /// tip
    
    `Response` ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  ์‘๋‹ต์„ ์ง์ ‘ ๋ฐ˜ํ™˜ํ•˜๋Š” ๊ฒฝ์šฐ, FastAPI๋Š” ์ด๋ฅผ ์ง์ ‘ ๋ฐ˜ํ™˜ํ•œ๋‹ค๋Š” ์ ์— ์œ ์˜ํ•˜์„ธ์š”.
    
    ๋”ฐ๋ผ์„œ ๋ฐ์ดํ„ฐ๊ฐ€ ์˜ฌ๋ฐ”๋ฅธ ์œ ํ˜•์ธ์ง€ ํ™•์ธํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ: `JSONResponse`๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ๊ฒฝ์šฐ, JSON๊ณผ ํ˜ธํ™˜๋˜๋Š”์ง€ ํ™•์ธํ•˜์„ธ์š”.
    
    ๋˜ํ•œ `response_model`๋กœ ๊ฑธ๋Ÿฌ์ ธ์•ผ ํ•  ๋ฐ์ดํ„ฐ๊ฐ€ ์ „๋‹ฌ๋˜์ง€ ์•Š๋„๋ก ํ™•์ธํ•˜์„ธ์š”.
    
    ///
    
    ### ์ถ”๊ฐ€ ์ •๋ณด
    
    /// note | "๊ธฐ์ˆ ์  ์„ธ๋ถ€์‚ฌํ•ญ"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 10:32:45 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. tests/test_default_response_class.py

    from typing import Any
    
    import orjson
    from fastapi import APIRouter, FastAPI
    from fastapi.responses import HTMLResponse, JSONResponse, PlainTextResponse
    from fastapi.testclient import TestClient
    
    
    class ORJSONResponse(JSONResponse):
        media_type = "application/x-orjson"
    
        def render(self, content: Any) -> bytes:
            return orjson.dumps(content)
    
    
    class OverrideResponse(JSONResponse):
        media_type = "application/x-override"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Mar 01 20:49:20 UTC 2020
    - 5.2K bytes
    - Viewed (0)
Back to top