Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2141 - 2150 of 2,914 for math (0.02 seconds)

  1. docs/zh-hant/docs/advanced/response-change-status-code.md

    例如,假設你預設想回傳 HTTP 狀態碼 "OK" `200`。
    
    但如果資料不存在,你想要建立它,並回傳 HTTP 狀態碼 "CREATED" `201`。
    
    同時你仍希望能用 `response_model` 過濾並轉換所回傳的資料。
    
    在這些情況下,你可以使用 `Response` 參數。
    
    ## 使用 `Response` 參數 { #use-a-response-parameter }
    
    你可以在你的路徑操作函式(path operation function)中宣告一個 `Response` 型別的參數(就像你可以對 Cookies 和標頭那樣)。
    
    接著你可以在那個「*暫時的*」回應物件上設定 `status_code`。
    
    {* ../../docs_src/response_change_status_code/tutorial001_py310.py hl[1,9,12] *}
    
    然後你可以照常回傳任何需要的物件(例如 `dict`、資料庫模型等)。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_additional_responses/test_tutorial004.py

                                    "required": True,
                                    "schema": {"title": "Item Id", "type": "string"},
                                    "name": "item_id",
                                    "in": "path",
                                },
                                {
                                    "required": False,
                                    "schema": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 10:53:47 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  3. src/bufio/net_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package bufio_test
    
    import (
    	"bufio"
    	"io"
    	"net"
    	"path/filepath"
    	"strings"
    	"sync"
    	"testing"
    )
    
    // TestCopyUnixpacket tests that we can use bufio when copying
    // across a unixpacket socket. This used to fail due to an unnecessary
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Feb 07 19:37:07 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/curl/CurlRequestTest.java

            assertNotNull(request);
        }
    
        @Test
        public void testLongUrl() {
            // Test with very long URL
            StringBuilder longUrl = new StringBuilder("https://example.com/path");
            for (int i = 0; i < 100; i++) {
                longUrl.append("/segment").append(i);
            }
    
            CurlRequest request = new CurlRequest(Method.GET, longUrl.toString());
            assertNotNull(request);
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/resources/web-platform-test-urltestdata.txt

    foo:/bar.com/  s:foo p:/bar.com/
    foo://///////  s:foo p://///////
    foo://///////bar.com/  s:foo p://///////bar.com/
    foo:////://///  s:foo p:////://///
    c:/foo  s:c p:/foo
    //foo/bar  s:http h:foo p:/bar
    http://foo/path;a??e#f#g  s:http h:foo p:/path;a q:??e f:#f#g
    http://foo/abcd?efgh?ijkl  s:http h:foo p:/abcd q:?efgh?ijkl
    http://foo/abcd#foo?bar  s:http h:foo p:/abcd f:#foo?bar
    [61:24:74]:98  s:http h:example.org p:/foo/[61:24:74]:98
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 14.3K bytes
    - Click Count (0)
  6. docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md

    participant dep_func as Dep scope="function"
    participant operation as Path Operation
    
        client ->> dep_req: Start request
        Note over dep_req: Run code up to yield
        dep_req ->> dep_func: Pass dependency
        Note over dep_func: Run code up to yield
        dep_func ->> operation: Run path operation with dependency
        operation ->> dep_func: Return from path operation
        Note over dep_func: Run code after yield
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelResolver.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.repository.internal;
    
    import java.nio.file.Path;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.HashSet;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Set;
    
    import org.apache.maven.model.Dependency;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Apr 14 13:42:17 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  8. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.crawler.util;
    
    import java.io.File;
    import java.nio.file.Path;
    
    import org.codelibs.core.io.FileUtil;
    import org.codelibs.fess.crawler.exception.CrawlerSystemException;
    import org.eclipse.jetty.server.Handler;
    import org.eclipse.jetty.server.Server;
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Jan 15 01:11:43 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/PathTranslatingPostProcessor.java

     * under the License.
     */
    package org.apache.maven.model.interpolation;
    
    import java.io.File;
    import java.util.Collection;
    import java.util.List;
    
    import org.apache.maven.model.path.PathTranslator;
    import org.codehaus.plexus.interpolation.InterpolationPostProcessor;
    import org.codehaus.plexus.interpolation.util.ValueSourceUtils;
    
    /**
     *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  10. docs/auditlog/auditlog-echo.go

    	defer r.Body.Close()
    	if err != nil {
    		log.Printf("Error reading request body: %v", err)
    		w.WriteHeader(http.StatusBadRequest)
    		return
    	}
    
    	log.Printf(">>> %s %s\n", r.Method, r.URL.Path)
    	var out bytes.Buffer
    	json.Indent(&out, body, "", "    ")
    	log.Printf("%s\n", out.String())
    
    	w.WriteHeader(http.StatusOK)
    }
    
    func main() {
    	flag.Parse()
    	http.HandleFunc("/", mainHandler)
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 1.5K bytes
    - Click Count (0)
Back to Top