Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 333 for Cookies (1.16 sec)

  1. docs/en/docs/reference/response.md

    # `Response` class
    
    You can declare a parameter in a *path operation function* or dependency to be of type `Response` and then you can set data for the response like headers or cookies.
    
    You can also use it directly to create an instance of it and return it from your *path operations*.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Response
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 397 bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt

    import okhttp3.internal.UTC
    
    /** The last four-digit year: "Fri, 31 Dec 9999 23:59:59 GMT". */
    internal const val MAX_DATE = 253402300799999L
    
    /**
     * Most websites serve cookies in the blessed format. Eagerly create the parser to ensure such
     * cookies are on the fast path.
     */
    private val STANDARD_DATE_FORMAT =
      object : ThreadLocal<DateFormat>() {
        override fun initialValue(): DateFormat {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. tests/test_security_api_key_cookie_optional.py

        if current_user is None:
            return {"msg": "Create an account first"}
        else:
            return current_user
    
    
    def test_security_api_key():
        client = TestClient(app, cookies={"key": "secret"})
        response = client.get("/users/me")
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "secret"}
    
    
    def test_security_api_key_no_key():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. src/net/http/roundtrip.go

    //go:linkname badRoundTrip net/http.(*Transport).RoundTrip
    func badRoundTrip(*Transport, *Request) (*Response, error)
    
    // RoundTrip implements the [RoundTripper] interface.
    //
    // For higher-level HTTP client support (such as handling of cookies
    // and redirects), see [Get], [Post], and the [Client] type.
    //
    // Like the RoundTripper interface, the error types returned
    // by RoundTrip are unspecified.
    func (t *Transport) RoundTrip(req *Request) (*Response, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 988 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go

    	}
    	if err == nil {
    		// dissociate was successful, safe to delete the cookie
    		fCookie := e.fds[fd]
    		delete(e.cookies, fCookie)
    	}
    	delete(e.fds, fd)
    	return err
    }
    
    func createFileObjCookie(name string, stat os.FileInfo, cookie interface{}) (*fileObjCookie, error) {
    	fCookie := new(fileObjCookie)
    	fCookie.cookie = cookie
    	if name != "" && stat != nil {
    		fCookie.fobj = new(fileObj)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 31.1K bytes
    - Viewed (0)
  6. tests/test_security_api_key_cookie_description.py

            "components": {
                "securitySchemes": {
                    "APIKeyCookie": {
                        "type": "apiKey",
                        "name": "key",
                        "in": "cookie",
                        "description": "An API Cookie Key",
                    }
                }
            },
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/cors.md

    ## Wildcards
    
    It's also possible to declare the list as `"*"` (a "wildcard") to say that all are allowed.
    
    But that will only allow certain types of communication, excluding everything that involves credentials: Cookies, Authorization headers like those used with Bearer Tokens, etc.
    
    So, for everything to work correctly, it's better to specify explicitly the allowed origins.
    
    ## Use `CORSMiddleware`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Nov 13 20:28:37 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  8. docs/en/docs/reference/websockets.md

        options:
            members:
                - scope
                - app
                - url
                - base_url
                - headers
                - query_params
                - path_params
                - cookies
                - client
                - state
                - url_for
                - client_state
                - application_state
                - receive
                - send
                - accept
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. tests/test_security_api_key_cookie.py

        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User = Depends(get_current_user)):
        return current_user
    
    
    def test_security_api_key():
        client = TestClient(app, cookies={"key": "secret"})
        response = client.get("/users/me")
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "secret"}
    
    
    def test_security_api_key_no_key():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. tests/integration/security/fuzz/fuzzers/jwt_tool/jwtconf.ini

    [input]
    wordlist = jwt-common.txt
    commonHeaders = common-headers.txt
    commonPayloads = common-payloads.txt
    
    [argvals]
    # Set at runtime - changes here are ignored
    sigType =
    targetUrl =
    cookies =
    key =
    keyList =
    keyFile =
    headerLoc =
    payloadclaim =
    headerclaim =
    payloadvalue =
    headervalue =
    canaryvalue =
    header =
    exploitType =
    scanMode =
    reqMode =
    postData =
    resCode =
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 21 20:06:01 UTC 2021
    - 1.1K bytes
    - Viewed (0)
Back to top