- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,384 for Header (0.11 sec)
-
docs_src/dependencies/tutorial006.py
from fastapi import Depends, FastAPI, Header, HTTPException app = FastAPI() async def verify_token(x_token: str = Header()): if x_token != "fake-super-secret-token": raise HTTPException(status_code=400, detail="X-Token header invalid") async def verify_key(x_key: str = Header()): if x_key != "fake-super-secret-key": raise HTTPException(status_code=400, detail="X-Key header invalid") return x_key
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 583 bytes - Viewed (0) -
cmd/healthcheck-handler.go
DeploymentType: r.Form.Get("deployment-type"), } result := objLayer.Health(ctx, opts) w.Header().Set(xhttp.MinIOWriteQuorum, strconv.Itoa(result.WriteQuorum)) w.Header().Set(xhttp.MinIOStorageClassDefaults, strconv.FormatBool(result.UsingDefaults)) // return how many drives are being healed if any if result.HealingDrives > 0 { w.Header().Set(xhttp.MinIOHealingDrives, strconv.Itoa(result.HealingDrives)) } if !result.Healthy {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 26 07:44:34 UTC 2024 - 6.9K bytes - Viewed (0) -
docs_src/dependencies/tutorial012.py
from fastapi import Depends, FastAPI, Header, HTTPException async def verify_token(x_token: str = Header()): if x_token != "fake-super-secret-token": raise HTTPException(status_code=400, detail="X-Token header invalid") async def verify_key(x_key: str = Header()): if x_key != "fake-super-secret-key": raise HTTPException(status_code=400, detail="X-Key header invalid") return x_key
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 696 bytes - Viewed (0) -
cmd/signature-v4-parser.go
} // Initialize signature version '4' structured header. signV4Values := signValues{} var s3Err APIErrorCode // Save credential values. signV4Values.Credential, s3Err = parseCredentialHeader(strings.TrimSpace(credElement), region, stype) if s3Err != ErrNone { return sv, s3Err } // Save signed headers. signV4Values.SignedHeaders, s3Err = parseSignedHeader(authFields[1])
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.4K bytes - Viewed (0) -
cmd/handler-utils_test.go
}, shouldFail: false, }, // Fail if header key is not in canonicalized form { header: http.Header{ "x-amz-meta-appid": []string{"amz-meta"}, }, metadata: map[string]string{ "x-amz-meta-appid": "amz-meta", }, shouldFail: false, }, // Support multiple values { header: http.Header{ "x-amz-meta-key": []string{"amz-meta1", "amz-meta2"}, },
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 6.1K bytes - Viewed (0) -
src/archive/tar/format.go
// Reference: // http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html#tag_20_92_13_06 FormatUSTAR // FormatPAX represents the PAX header format defined in POSIX.1-2001. // // PAX extends USTAR by writing a special file with Typeflag TypeXHeader // preceding the original header. This file contains a set of key-value // records, which are used to overcome USTAR's shortcomings, in addition to
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Oct 13 18:36:46 UTC 2023 - 11.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt
// Read the header. val header = Buffer() fileOperator.read(0, header, FILE_HEADER_SIZE) val prefix = header.readByteString(PREFIX_CLEAN.size.toLong()) if (prefix != PREFIX_CLEAN) throw IOException("unreadable cache file") val upstreamSize = header.readLong() val metadataSize = header.readLong() // Read the metadata.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 11.8K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/dict/stopwords/admin_dict_stopwords_details.jsp
<div class="wrapper"> <jsp:include page="/WEB-INF/view/common/admin/header.jsp"></jsp:include> <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp"> <jsp:param name="menuCategoryType" value="system"/> <jsp:param name="menuType" value="dict"/> </jsp:include> <div class="content-wrapper"> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2">
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 13 07:47:04 UTC 2020 - 7.2K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
val derReader = DerReader(buffer) derReader.read("test") { header -> assertThat(header.tag).isEqualTo(2L) assertThat(header.tagClass).isEqualTo(DerHeader.TAG_CLASS_CONTEXT_SPECIFIC) assertThat(header.length).isEqualTo(7L) derReader.read("test") { header -> assertThat(header.tag).isEqualTo(3L) assertThat(header.tagClass).isEqualTo(DerHeader.TAG_CLASS_APPLICATION)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 31.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Request.kt
/** * Sets the header named [name] to [value]. If this request already has any headers * with that name, they are all replaced. */ open fun header( name: String, value: String, ) = commonHeader(name, value) /** * Adds a header with [name] and [value]. Prefer this method for multiply-valued * headers like "Cookie". *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:17:44 UTC 2024 - 10.5K bytes - Viewed (0)