Search Options

Results per page
Sort
Preferred Languages
Advance

Results 3511 - 3520 of 7,967 for aclass (0.04 sec)

  1. docs/em/docs/tutorial/request-forms.md

    # 📨 💽
    
    🕐❔ 👆 💪 📨 📨 🏑 ↩️ 🎻, 👆 💪 ⚙️ `Form`.
    
    /// info
    
    ⚙️ 📨, 🥇 ❎ <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
    🤶 Ⓜ. `pip install python-multipart`.
    
    ///
    
    ## 🗄 `Form`
    
    🗄 `Form` ⚪️➡️ `fastapi`:
    
    ```Python hl_lines="1"
    {!../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ## 🔬 `Form` 🔢
    
    ✍ 📨 🔢 🎏 🌌 👆 🔜 `Body` ⚖️ `Query`:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/encoder.md

    ## 使用`jsonable_encoder`
    
    让我们假设你有一个数据库名为`fake_db`,它只能接收与JSON兼容的数据。
    
    例如,它不接收`datetime`这类的对象,因为这些对象与JSON不兼容。
    
    因此,`datetime`对象必须将转换为包含<a href="https://en.wikipedia.org/wiki/ISO_8601" class="external-link" target="_blank">ISO格式化</a>的`str`类型对象。
    
    同样,这个数据库也不会接收Pydantic模型(带有属性的对象),而只接收`dict`。
    
    对此你可以使用`jsonable_encoder`。
    
    它接收一个对象,比如Pydantic模型,并会返回一个JSON兼容的版本:
    
    //// tab | Python 3.10+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorFactory.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jakarta.annotation.Resource;
    
    /**
     * @author shinsuke
     *
     */
    public class ExtractorFactory {
    
        private static final Logger logger = LoggerFactory.getLogger(ExtractorFactory.class);
    
        @Resource
        protected CrawlerContainer crawlerContainer;
    
        protected Map<String, Extractor> extractorMap = new HashMap<>();
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Tue Jun 18 05:49:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/ErrorToWarnRewritePolicy.java

    import org.apache.logging.log4j.core.impl.Log4jLogEvent;
    
    @Plugin(name = "ErrorToWarnRewritePolicy", category = Core.CATEGORY_NAME, elementType = "rewritePolicy", printObject = true)
    public class ErrorToWarnRewritePolicy implements RewritePolicy {
    
        private final String[] loggerNames;
    
        public ErrorToWarnRewritePolicy(final String[] loggerNames) {
            this.loggerNames = loggerNames;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourcesHttpTest.kt

    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    @Tag("Slowish")
    class EventSourcesHttpTest {
      @RegisterExtension
      val platform = PlatformRule()
      private lateinit var server: MockWebServer
    
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

    import okhttp3.AsyncDns.Companion.TYPE_A
    import okhttp3.AsyncDns.Companion.TYPE_AAAA
    import okhttp3.dnsoverhttps.DnsRecordCodec.decodeAnswers
    import okio.ByteString.Companion.decodeHex
    import org.junit.jupiter.api.Test
    
    class DnsRecordCodecTest {
      @Test
      fun testGoogleDotComEncoding() {
        val encoded = encodeQuery("google.com", TYPE_A)
        assertThat(encoded).isEqualTo("AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ")
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/general/ApiAdminGeneralAction.java

    import org.lastaflute.web.Execute;
    import org.lastaflute.web.response.JsonResponse;
    
    import jakarta.annotation.Resource;
    
    /**
     * @author shinsuke
     */
    public class ApiAdminGeneralAction extends FessApiAdminAction {
    
        // ===================================================================================
        //                                                                           Attribute
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/it/admin/DataConfigTests.java

    import java.util.HashMap;
    import java.util.Map;
    
    import org.codelibs.fess.it.CrudTestBase;
    import org.junit.jupiter.api.Tag;
    import org.junit.jupiter.api.Test;
    
    @Tag("it")
    public class DataConfigTests extends CrudTestBase {
    
        private static final String NAME_PREFIX = "dataConfigTest_";
        private static final String API_PATH = "/api/admin/dataconfig";
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/it/admin/LogTests.java

    import java.util.Map;
    
    import org.codelibs.fess.it.CrudTestBase;
    import org.junit.jupiter.api.Tag;
    import org.junit.jupiter.api.Test;
    
    import io.restassured.path.json.JsonPath;
    
    @Tag("it")
    public class LogTests extends CrudTestBase {
    
        private static final String NAME_PREFIX = "logTest_";
        private static final String API_PATH = "/api/admin/log";
        private static final String LIST_ENDPOINT_SUFFIX = "files";
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

    /**
     * Apache HttpClient 5.x.
     *
     * https://hc.apache.org/httpcomponents-client-5.0.x/index.html
     *
     * Baseline test if we ned to validate OkHttp behaviour against other popular clients.
     */
    class ApacheHttpClientTest {
      private val httpClient = HttpClients.createDefault()
    
      @AfterEach fun tearDown() {
        httpClient.close()
      }
    
      @Test fun get(server: MockWebServer) {
        server.enqueue(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top