- Sort Score
- Result 10 results
- Languages All
Results 301 - 310 of 1,271 for home (0.08 sec)
-
docs_src/response_cookies/tutorial001.py
from fastapi import FastAPI from fastapi.responses import JSONResponse app = FastAPI() @app.post("/cookie/") def create_cookie(): content = {"message": "Come to the dark side, we have cookies"} response = JSONResponse(content=content) response.set_cookie(key="fakesession", value="fake-cookie-session-value")
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 344 bytes - Viewed (0) -
docs_src/custom_response/tutorial002.py
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 352 bytes - Viewed (0) -
docs_src/custom_response/tutorial003.py
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 394 bytes - Viewed (0) -
internal/fips/no_fips.go
// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. //
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Jun 21 14:54:48 UTC 2022 - 833 bytes - Viewed (0) -
tests/test_tutorial/test_response_cookies/test_tutorial001.py
client = TestClient(app) def test_path_operation(): response = client.post("/cookie/") assert response.status_code == 200, response.text assert response.json() == {"message": "Come to the dark side, we have cookies"}
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Jul 09 18:06:12 UTC 2020 - 403 bytes - Viewed (0) -
docs/security/README.md
- Seal/Unmount one/some master keys. That will lock all SSE-S3 encrypted objects protected by these master keys. All these objects can not be decrypted as long as the key(s) are sealed.
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Sat Feb 12 00:51:25 UTC 2022 - 13.8K bytes - Viewed (0) -
docs_src/custom_response/tutorial004.py
from fastapi import FastAPI from fastapi.responses import HTMLResponse app = FastAPI() def generate_html_response(): html_content = """ <html> <head> <title>Some HTML in here</title> </head> <body> <h1>Look ma! HTML!</h1> </body> </html> """ return HTMLResponse(content=html_content, status_code=200)
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 491 bytes - Viewed (0) -
tests/test_tutorial/test_response_cookies/test_tutorial002.py
client = TestClient(app) def test_path_operation(): response = client.post("/cookie-and-object/") assert response.status_code == 200, response.text assert response.json() == {"message": "Come to the dark side, we have cookies"}
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Jul 09 18:06:12 UTC 2020 - 414 bytes - Viewed (0) -
cmd/erasure-object_test.go
} }) } } // In some deployments, one object has data inlined in one disk and not inlined in other disks. func TestGetObjectInlineNotInline(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() // Create a backend with 4 disks named disk{1...4}, this name convention // because we will unzip some object data from a sample archive. const numDisks = 4
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 36.8K bytes - Viewed (0) -
tests/test_sub_callbacks.py
@subrouter.post("/invoices/", callbacks=invoices_callback_router.routes) def create_invoice(invoice: Invoice, callback_url: Optional[HttpUrl] = None): """ Create an invoice. This will (let's imagine) let the API user (some external developer) create an invoice. And this path operation will: * Send the invoice to the client. * Collect the money from the client.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 13.8K bytes - Viewed (0)