- Sort Score
- Num 10 results
- Language All
Results 2611 - 2620 of 2,768 for add (0.04 seconds)
-
src/test/java/org/codelibs/fess/app/web/base/FessAdminActionTest.java
final Map<String, String> log = new LinkedHashMap<>(); log.put("user", user.map(FessUserBean::getUserId).orElse("-")); log.put("path", path); capturedLogs.add(log); } }; } private FessAdminAction createGodHandAction(final ActivityHelper spyActivityHelper, final OptionalThing<FessUserBean> userBean, final boolean throwException) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 22.7K bytes - Click Count (0) -
docs/ko/docs/tutorial/handling-errors.md
/// tip | 팁 `HTTPException`을 발생시킬 때 `detail` 파라미터로 `str`만 전달할 수 있는 것이 아니라, JSON으로 변환할 수 있는 어떤 값이든 전달할 수 있습니다. `dict`, `list` 등을 전달할 수 있습니다. 이들은 **FastAPI**가 자동으로 처리해 JSON으로 변환합니다. /// ## 커스텀 헤더 추가하기 { #add-custom-headers } HTTP 오류에 커스텀 헤더를 추가할 수 있으면 유용한 상황이 있습니다. 예를 들어 특정 보안 유형에서 그렇습니다. 아마 코드에서 직접 사용할 일은 거의 없을 것입니다. 하지만 고급 시나리오에서 필요하다면 커스텀 헤더를 추가할 수 있습니다:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 10.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java
} @Test public void testConcatValues() { // Test static concatValues method List<String> dest = new java.util.ArrayList<>(); dest.add("existing"); SuggestItem.concatValues(dest, "new1", "new2", "existing"); assertEquals(3, dest.size()); assertTrue(dest.contains("existing")); assertTrue(dest.contains("new1"));Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Sep 01 13:33:03 GMT 2025 - 16.7K bytes - Click Count (0) -
cmd/peer-rest-client.go
values := make(url.Values) values.Set(peerRESTMetricsTypes, strconv.FormatUint(uint64(t), 10)) for disk := range opts.disks { values.Add(peerRESTDisk, disk) } for host := range opts.hosts { values.Add(peerRESTHost, host) } values.Set(peerRESTJobID, opts.jobID) values.Set(peerRESTDepID, opts.depID) v, err := getMetricsRPC.Call(ctx, client.gridConn(), grid.NewURLValuesWith(values))
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 26.1K bytes - Click Count (0) -
android/guava/src/com/google/common/base/FinalizableReferenceQueue.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 19:26:59 GMT 2026 - 15.8K bytes - Click Count (0) -
fastapi/openapi/utils.py
file_name = getattr(route.endpoint, "__globals__", {}).get("__file__") if file_name: message += f" at {file_name}" warnings.warn(message, stacklevel=1) operation_ids.add(operation_id) operation["operationId"] = operation_id if route.deprecated: operation["deprecated"] = route.deprecated return operation def get_openapi_path( *,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 25.6K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/handling-errors.md
"detail": "Item not found" } ``` /// tip 在 raise 一個 `HTTPException` 時,你可以將任何可轉為 JSON 的值作為 `detail` 參數,不只限於 `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:05:38 GMT 2026 - 8.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
for (int i = 0; i < ITERATIONS; i++) { Object key = new Object(); long value = i % 2; map.put(key, value); if (value != 0L) { nonZeroKeys.add(key); } } assertEquals(ITERATIONS, map.size()); assertTrue(map.asMap().containsValue(0L)); map.removeAllZeros(); assertFalse(map.asMap().containsValue(0L));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 17.5K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java
} Builder(int initCapacity) { this.entries = Lists.newArrayListWithCapacity(initCapacity); } @CanIgnoreReturnValue public Builder<K, V> put(K key, V value) { entries.add(entryOf(key, value)); return this; } @CanIgnoreReturnValue public Builder<K, V> put(Entry<? extends K, ? extends V> entry) { return put(entry.getKey(), entry.getValue()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 15:51:42 GMT 2026 - 17.2K bytes - Click Count (0) -
cmd/object-handlers-common.go
func ifModifiedSince(objTime time.Time, givenTime time.Time) bool { // The Date-Modified header truncates sub-second precision, so // use mtime < t+1s instead of mtime <= t to check for unmodified. return !objTime.Before(givenTime.Add(1 * time.Second)) } // canonicalizeETag returns ETag with leading and trailing double-quotes removed, // if any present func canonicalizeETag(etag string) string { return etagRegex.ReplaceAllString(etag, "$1")
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Jul 23 12:36:06 GMT 2025 - 15.2K bytes - Click Count (0)