- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 498 for handleMsg (0.05 seconds)
-
src/test/java/jcifs/spnego/NegTokenInitTest.java
class EdgeCasesTests { @Test @DisplayName("Parse handles empty token gracefully") void testParseEmptyToken() { byte[] emptyToken = new byte[0]; assertThrows(IOException.class, () -> new NegTokenInit(emptyToken)); } @Test @DisplayName("Parse handles null mechanisms array") void testNullMechanisms() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21K bytes - Click Count (0) -
docs/zh/docs/tutorial/handling-errors.md
有些场景下要为 HTTP 错误添加自定义响应头。例如,出于某些类型的安全需要。 一般情况下你可能不会在代码中直接使用它。 但在某些高级场景中需要时,你可以添加自定义响应头: {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *} ## 安装自定义异常处理器 { #install-custom-exception-handlers } 可以使用[与 Starlette 相同的异常处理工具](https://www.starlette.dev/exceptions/)添加自定义异常处理器。 假设有一个自定义异常 `UnicornException`(你自己或你使用的库可能会 `raise` 它)。 并且你希望用 FastAPI 在全局处理该异常。 此时,可以用 `@app.exception_handler()` 添加自定义异常处理器: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) -
cmd/sftp-server-driver.go
globalTrace.Publish(sftpTrace(s, startTime, source, user, err, sz)) } } // NewSFTPDriver initializes sftp.Handlers implementation of following interfaces // // - sftp.Fileread // - sftp.Filewrite // - sftp.Filelist // - sftp.Filecmd func NewSFTPDriver(perms *ssh.Permissions, remoteIP string) sftp.Handlers { handler := &sftpDriver{ endpoint: fmt.Sprintf("127.0.0.1:%s", globalMinioPort), permissions: perms,
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) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
NtlmMessage.writeULong(dest, 0, 0x01020304); assertArrayEquals(new byte[] { 4, 3, 2, 1 }, dest, "Writer must be little‑endian"); } @Test @DisplayName("writeULong handles negative values as unsigned") void testWriteULongNegative() { byte[] dest = new byte[4]; NtlmMessage.writeULong(dest, 0, -1);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.8K bytes - Click Count (0) -
cmd/bucket-handlers_test.go
// There is no need to use an existing bucket and valid input for creating the request // since the `objectLayer==nil` check is performed before any other checks inside the handlers. // The only aim is to generate an HTTP request in a way that the relevant/registered end point is evoked/called. nilBucket := "dummy-bucket"
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 39.8K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/Escaper.java
* escaper implementation. * * <ul> * <li>{@link UnicodeEscaper} handles <a href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a> * correctly, including surrogate character pairs. If the input is badly formed the escaper * should throw {@link IllegalArgumentException}. * <li>{@link CharEscaper} handles Java characters independently and does not verify the input
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 15:45:16 GMT 2025 - 4.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/duplicatehost/CreateForm.java
import jakarta.validation.constraints.Max; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.Size; /** * Form class for creating new duplicate host configuration entries. * This form handles the creation of duplicate host mappings that redirect * crawling from duplicate hostnames to the regular canonical hostname. */ public class CreateForm { /** * Creates a new CreateForm instance. */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 2.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/backup/UploadForm.java
package org.codelibs.fess.app.web.admin.backup; import org.lastaflute.web.ruts.multipart.MultipartFormFile; import org.lastaflute.web.validation.Required; /** * Form class for backup file upload. * This form handles file uploads for backup and restore operations. */ public class UploadForm { /** * The backup file to be uploaded. */ @Required public MultipartFormFile bulkFile; /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 1.1K bytes - Click Count (1) -
internal/handlers/proxy_test.go
// GNU Affero General Public License for more details. // // 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 handlers import ( "net/http" "testing" ) type headerTest struct { key string // header key val string // header val expected string // expected result }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Feb 26 19:25:49 GMT 2025 - 3.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/elevateword/CreateForm.java
import org.lastaflute.web.validation.theme.conversion.ValidateTypeFailure; import jakarta.validation.constraints.Size; /** * Form class for creating new elevate word configuration entries. * This form handles the creation of elevate word rules that boost * specific documents in search results when certain keywords are matched. */ public class CreateForm { /** * Creates a new CreateForm instance. */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 2.7K bytes - Click Count (0)