Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2581 - 2590 of 2,768 for add (0.01 seconds)

  1. docs/zh/docs/tutorial/handling-errors.md

    }
    ```
    
    /// tip | 提示
    
    触发 `HTTPException` 时,可以用参数 `detail` 传递任何能转换为 JSON 的值,不仅限于 `str`。
    
    还支持传递 `dict`、`list` 等数据结构。
    
    **FastAPI** 能自动处理这些数据,并将之转换为 JSON。
    
    ///
    
    ## 添加自定义响应头 { #add-custom-headers }
    
    有些场景下要为 HTTP 错误添加自定义响应头。例如,出于某些类型的安全需要。
    
    一般情况下你可能不会在代码中直接使用它。
    
    但在某些高级场景中需要时,你可以添加自定义响应头:
    
    {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  2. cmd/sftp-server-driver.go

    	if !ok {
    		return nil, os.ErrNotExist
    	}
    
    	pr, pw := io.Pipe()
    
    	wa := &writerAt{
    		buffer: make(map[int64][]byte),
    		w:      pw,
    		r:      pr,
    		wg:     &sync.WaitGroup{},
    	}
    	wa.wg.Add(1)
    	go func() {
    		oi, err := clnt.PutObject(r.Context(), bucket, object, pr, -1, minio.PutObjectOptions{
    			ContentType:          mimedb.TypeByExtension(path.Ext(object)),
    			DisableContentSha256: true,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Feb 10 16:35:49 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/Hc5FormScheme.java

                final String tokenValue = getTokenValue(tokenPattern, content);
                if (StringUtil.isNotBlank(tokenValue)) {
                    responseParams.add(new Pair<>(tokenName, tokenValue));
                    if (logger.isDebugEnabled()) {
                        logger.debug("Token: {}", tokenValue);
                    }
                } else if (logger.isDebugEnabled()) {
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Sun Jan 04 13:09:59 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/io/MoreFiles.java

            exceptions = deleteRecursivelyInsecure(path);
          }
        } catch (IOException e) {
          if (exceptions == null) {
            throw e;
          } else {
            exceptions.add(e);
          }
        }
    
        if (exceptions != null) {
          throwDeleteFailed(path, exceptions);
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:07:06 GMT 2025
    - 34.6K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

            nestedMap.put("nestedKey", "nestedValue");
            doc.put("nested", nestedMap);
    
            List<Map<String, Object>> listOfMaps = new ArrayList<>();
            listOfMaps.add(nestedMap);
            doc.put("listOfMaps", listOfMaps);
    
            assertEquals("nestedValue", DocumentUtil.getValue(nestedMap, "nestedKey", String.class));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  6. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

                for (MojoDescriptor mojo : mojos) {
                    MojoDescriptor clone = mojo.clone();
                    clone.setPluginDescriptor(pluginDescriptor);
                    clones.add(clone);
                }
            }
            return clones;
        }
    
        public PluginDescriptor(org.apache.maven.api.plugin.descriptor.PluginDescriptor original) {
            this.setGroupId(original.getGroupId());
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  7. docs/es/docs/tutorial/handling-errors.md

    Podrías pasar un `dict`, un `list`, etc.
    
    Son manejados automáticamente por **FastAPI** y convertidos a JSON.
    
    ///
    
    ## 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.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/handling-errors.md

    Você pode passar um `dict` ou um `list`, etc.
    Esses tipos de dados são manipulados automaticamente pelo **FastAPI** e convertidos em JSON.
    
    ///
    
    ## Adicione headers customizados { #add-custom-headers }
    
    Há certas situações em que é bastante útil poder adicionar headers customizados no HTTP error. Exemplo disso seria adicionar headers customizados para tipos de segurança.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java

                final Map<String, String> map = new HashMap<>();
                map.put(Constants.ITEM_LABEL, name);
                map.put(Constants.ITEM_VALUE, name);
                itemList.add(map);
            }
            RenderDataUtil.register(data, "handlerNameItems", itemList);
        }
    
        // ===================================================================================
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:54:13 GMT 2026
    - 21K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/witness/WitnessClient.java

            List<CompletableFuture<Void>> unregisterFutures = new ArrayList<>();
    
            for (WitnessRegistration registration : registrations.values()) {
                unregisterFutures.add(unregister(registration));
            }
    
            // Wait for all unregistrations to complete
            try {
                CompletableFuture.allOf(unregisterFutures.toArray(new CompletableFuture[0])).get(10, TimeUnit.SECONDS);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 20.8K bytes
    - Click Count (0)
Back to Top