Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1311 - 1320 of 1,726 for ujson (0.02 sec)

  1. mockwebserver/README.md

    You can set a custom body with a string, input stream or byte array. Also
    add headers with a fluent builder API.
    
    ```java
    MockResponse response = new MockResponse()
        .addHeader("Content-Type", "application/json; charset=utf-8")
        .addHeader("Cache-Control", "no-cache")
        .setBody("{}");
    ```
    
    MockResponse can be used to simulate a slow network. This is useful for
    testing timeouts and interactive testing.
    
    ```java
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/query-params.md

    ```
    
    📥 🔢 🔢 `needy` ✔ 🔢 🔢 🆎 `str`.
    
    🚥 👆 📂 👆 🖥 📛 💖:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    ...🍵 ❎ ✔ 🔢 `needy`, 👆 🔜 👀 ❌ 💖:
    
    ```JSON
    {
        "detail": [
            {
                "loc": [
                    "query",
                    "needy"
                ],
                "msg": "field required",
                "type": "value_error.missing"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. docs/tr/docs/tutorial/query-params.md

    Eğer tarayıcınızda şu bağlantıyı:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    ...`needy` parametresini eklemeden açarsanız şuna benzer bir hata ile karşılaşırsınız:
    
    ```JSON
    {
      "detail": [
        {
          "type": "missing",
          "loc": [
            "query",
            "needy"
          ],
          "msg": "Field required",
          "input": null,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/custom-request-and-route.md

    /// danger
    
    This is an "advanced" feature.
    
    If you are just starting with **FastAPI** you might want to skip this section.
    
    ///
    
    ## Use cases
    
    Some use cases include:
    
    * Converting non-JSON request bodies to JSON (e.g. <a href="https://msgpack.org/index.html" class="external-link" target="_blank">`msgpack`</a>).
    * Decompressing gzip-compressed request bodies.
    * Automatically logging all request bodies.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 22:39:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. internal/auth/credentials_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package auth
    
    import (
    	"encoding/json"
    	"testing"
    	"time"
    )
    
    func TestExpToInt64(t *testing.T) {
    	testCases := []struct {
    		exp             interface{}
    		expectedFailure bool
    	}{
    		{"", true},
    		{"-1", true},
    		{"1574812326", false},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 01 21:09:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/pilot/status_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package pilot
    
    import (
    	"bytes"
    	"encoding/json"
    	"os"
    	"testing"
    
    	core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
    	discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Aug 14 19:36:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. internal/config/lambda/config.go

    import "github.com/minio/minio/internal/event/target"
    
    // Config - lambda target configuration structure, holds
    // information about various lambda targets.
    type Config struct {
    	Webhook map[string]target.WebhookArgs `json:"webhook"`
    }
    
    const (
    	defaultTarget = "1"
    )
    
    // NewConfig - initialize lambda config.
    func NewConfig() Config {
    	// Make sure to initialize lambda targets
    	cfg := Config{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. docs/fr/docs/advanced/additional-status-codes.md

    Elle ne sera pas sérialisée avec un modèle.
    
    Assurez-vous qu'il contient les données souhaitées et que les valeurs soient dans un format JSON valides (si vous utilisez une `JSONResponse`).
    
    ///
    
    /// note | "Détails techniques"
    
    Vous pouvez également utiliser `from starlette.responses import JSONResponse`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. docs/pt/docs/advanced/response-cookies.md

    Lembre-se de que se você retornar uma resposta diretamente em vez de usar o parâmetro `Response`, FastAPI a retornará diretamente.
    
    Portanto, você terá que garantir que seus dados sejam do tipo correto. E.g. será compatível com JSON se você estiver retornando um `JSONResponse`.
    
    E também que você não esteja enviando nenhum dado que deveria ter sido filtrado por um `response_model`.
    
    ///
    
    ### Mais informações
    
    /// note | "Detalhes Técnicos"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 14 09:15:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/response-cookies.md

    Beachten Sie, dass, wenn Sie eine Response direkt zurückgeben, anstatt den `Response`-Parameter zu verwenden, FastAPI diese direkt zurückgibt.
    
    Sie müssen also sicherstellen, dass Ihre Daten vom richtigen Typ sind. Z. B. sollten diese mit JSON kompatibel sein, wenn Sie eine `JSONResponse` zurückgeben.
    
    Und auch, dass Sie keine Daten senden, die durch ein `response_model` hätten gefiltert werden sollen.
    
    ///
    
    ### Mehr Informationen
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top