Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,805 for reqTests (0.16 sec)

  1. src/net/http/readrequest_test.go

    	"bytes"
    	"fmt"
    	"io"
    	"net/url"
    	"reflect"
    	"strings"
    	"testing"
    )
    
    type reqTest struct {
    	Raw     string
    	Req     *Request
    	Body    string
    	Trailer Header
    	Error   string
    }
    
    var noError = ""
    var noBodyStr = ""
    var noTrailer Header = nil
    
    var reqTests = []reqTest{
    	// Baseline test; All Request fields included for template use
    	{
    		"GET http://www.techcrunch.com/ HTTP/1.1\r\n" +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 22:23:32 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/net/http/request.go

    //
    // For outgoing client request, the context controls the entire
    // lifetime of a request and its response: obtaining a connection,
    // sending the request, and reading the response headers and body.
    //
    // To create a new request with a context, use [NewRequestWithContext].
    // To make a deep copy of a request with a new context, use [Request.Clone].
    func (r *Request) WithContext(ctx context.Context) *Request {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  3. fastapi/requests.py

    from starlette.requests import HTTPConnection as HTTPConnection  # noqa: F401
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Aug 09 20:17:08 UTC 2020
    - 142 bytes
    - Viewed (0)
  4. mockwebserver/README.md

      // Optional: confirm that your app made the HTTP requests you were expecting.
      RecordedRequest request1 = server.takeRequest();
      assertEquals("/v1/chat/messages/", request1.getPath());
      assertNotNull(request1.getHeader("Authorization"));
    
      RecordedRequest request2 = server.takeRequest();
      assertEquals("/v1/chat/messages/2", request2.getPath());
    
      RecordedRequest request3 = server.takeRequest();
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/test/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServerTest.groovy

                'Did not receive all expected requests. Waiting for 1 further requests, received [], released [], not yet received [GET /b]',
                'Did not receive all expected requests. Waiting for 1 further requests, received [], released [], not yet received [GET /c, GET /d]',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Request.kt

        }
    
        internal constructor(request: Request) {
          this.url = request.url
          this.method = request.method
          this.body = request.body
          this.tags =
            when {
              request.tags.isEmpty() -> mapOf()
              else -> request.tags.toMutableMap()
            }
          this.headers = request.headers.newBuilder()
          this.cacheUrlOverride = request.cacheUrlOverride
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:17:44 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/using-request-directly.md

    ## `Request`-Dokumentation
    
    Weitere Details zum <a href="https://www.starlette.io/requests/" class="external-link" target="_blank">`Request`-Objekt finden Sie in der offiziellen Starlette-Dokumentation</a>.
    
    !!! note "Technische Details"
        Sie können auch `from starlette.requests import Request` verwenden.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:18:32 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/using-request-directly.md

    但在某些特定情况下,还是需要提取 `Request` 对象。
    
    ## 直接使用 `Request` 对象
    
    假设要在*路径操作函数*中获取客户端 IP 地址和主机。
    
    此时,需要直接访问请求。
    
    ```Python hl_lines="1  7-8"
    {!../../../docs_src/using_request_directly/tutorial001.py!}
    ```
    
    把*路径操作函数*的参数类型声明为 `Request`,**FastAPI** 就能把 `Request` 传递到参数里。
    
    !!! tip "提示"
    
        注意,本例除了声明请求参数之外,还声明了路径参数。
    
        因此,能够提取、验证路径参数、并转换为指定类型,还可以用 OpenAPI 注释。
    
        同样,您也可以正常声明其它参数,而且还可以提取 `Request`。
    
    ## `Request` 文档
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 22:44:02 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. docs/de/docs/how-to/custom-request-and-route.md

        Ein `Request` hat auch ein `request.receive`, welches eine Funktion ist, die den Hauptteil des Requests empfängt.
    
        Das `scope`-`dict` und die `receive`-Funktion sind beide Teil der ASGI-Spezifikation.
    
        Und diese beiden Dinge, `scope` und `receive`, werden benötigt, um eine neue `Request`-Instanz zu erstellen.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:18:23 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. docs/de/docs/reference/request.md

    # `Request`-Klasse
    
    Sie können einen Parameter in einer *Pfadoperation-Funktion* oder einer Abhängigkeit als vom Typ `Request` deklarieren und dann direkt auf das Requestobjekt zugreifen, ohne jegliche Validierung, usw.
    
    Sie können es direkt von `fastapi` importieren:
    
    ```python
    from fastapi import Request
    ```
    
    !!! tip "Tipp"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Feb 19 15:53:18 UTC 2024
    - 596 bytes
    - Viewed (0)
Back to top