- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 1,765 for header (0.05 seconds)
-
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
byte[] header = buildHeader(NtStatus.NT_STATUS_INVALID_PARAMETER); byte[] body = buildErrorBody(2, 3, new byte[] { (byte) 0xAA, (byte) 0xBB, (byte) 0xCC }); byte[] packet = new byte[header.length + body.length]; System.arraycopy(header, 0, packet, 0, header.length); System.arraycopy(body, 0, packet, header.length, body.length);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
internal/bucket/bandwidth/reader.go
hdr := r.opts.HeaderSize // remaining header bytes var tokens int // number of tokens to request if hdr > 0 { // available tokens go towards header first if hdr < b { // all of header can be accommodated r.opts.HeaderSize = 0 need = int(math.Min(float64(b-hdr), float64(need))) // use remaining tokens towards payload tokens = need + hdr } else { // part of header can be accommodated r.opts.HeaderSize -= b - 1
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 3.3K bytes - Click Count (0) -
cmd/api-headers.go
func setEventStreamHeaders(w http.ResponseWriter) { w.Header().Set(xhttp.ContentType, "text/event-stream") w.Header().Set(xhttp.CacheControl, "no-cache") // nginx to turn off buffering w.Header().Set("X-Accel-Buffering", "no") // nginx to turn off buffering } // Write http common headers func setCommonHeaders(w http.ResponseWriter) { // Set the "Server" http header. w.Header().Set(xhttp.ServerInfo, MinioStoreName)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 8.6K bytes - Click Count (0) -
tests/test_request_params/test_header/test_optional_list.py
import pytest from fastapi import FastAPI, Header from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel, Field app = FastAPI() # ===================================================================================== # Without aliases @app.get("/optional-list-str") async def read_optional_list_str( p: Annotated[list[str] | None, Header()] = None, ): return {"p": p}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.6K bytes - Click Count (0) -
docs_src/dependencies/tutorial006_py310.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
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 583 bytes - Click Count (0) -
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
*/ private fun decodeHeaderAsJavaNetCookies( url: HttpUrl, header: String, ): List<Cookie> { val result = mutableListOf<Cookie>() var pos = 0 val limit = header.length var pairEnd: Int while (pos < limit) { pairEnd = header.delimiterOffset(";,", pos, limit) val equalsSign = header.delimiterOffset('=', pos, pairEnd)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Mar 19 07:46:39 GMT 2026 - 3.9K bytes - Click Count (0) -
internal/etag/etag_test.go
} } } var fromContentMD5Tests = []struct { Header http.Header ETag ETag ShouldFail bool }{ {Header: http.Header{}, ETag: nil}, // 0 {Header: http.Header{"Content-Md5": []string{"1B2M2Y8AsgTpgAmY7PhCfg=="}}, ETag: must("d41d8cd98f00b204e9800998ecf8427e")}, // 1Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 12.6K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/SLinkedList.java
static final long serialVersionUID = 1L; private transient Entry header = new Entry(null, null, null); private transient int size = 0; /** * Creates an {@link SLinkedList}. */ public SLinkedList() { header.next = header; header.previous = header; } /** * Returns the first element. * * @return the first elementCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 10.5K bytes - Click Count (0) -
docs/de/llm-prompt.md
* the exception: die Exception * the exception handler: der Exceptionhandler * the form model: das Formularmodell * the form body: der Formularbody * the header: der Header * the headers (plural): die Header * in headers (plural): in Headern * the forwarded header: der Forwarded-Header * the lifespan event: das Lifespan-Event * the lock: der Lock * the locking: das Locking * the mobile application: die Mobile-Anwendung
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Dec 29 18:54:20 GMT 2025 - 9.8K bytes - Click Count (0) -
tests/test_schema_extra_examples.py
data: str | None = Header( default=None, example="header1", ), ): return data @app.get("/header_examples/") def header_examples( data: str | None = Header( default=None, examples=[ "header1", "header2", ], ), ):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 34.7K bytes - Click Count (0)