- Sort Score
- Num 10 results
- Language All
Results 981 - 990 of 1,562 for Responses (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs_src/custom_request_and_route/tutorial001_py310.py
import gzip from collections.abc import Callable from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body) self._body = body
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 976 bytes - Click Count (0) -
samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt
val request = Request .Builder() .url(server.url("/")) .header("Accept", "text/plain") .build() val response = client.newCall(request).execute() assertThat(response.code).isEqualTo(200) assertThat(response.body.string()).isEqualTo("hello, OkHttp") val recorded = server.takeRequest() assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 1.9K bytes - Click Count (0) -
src/main/java/jcifs/util/transport/Request.java
/** * Gets the next request in the chain. * * @return chained request */ Request getNext(); /** * Gets the response for this request. * * @return the response for this request */ Response getResponse();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/TrailersSource.kt
/** * Returns the trailers that follow an HTTP response, blocking if they aren't ready yet. * Implementations of this interface should respond to [Call.cancel] by immediately throwing an * [IOException]. * * Most callers won't need this interface, and should use [Response.trailers] instead. * * This interface is for test and production code that creates [Response] instances without making * an HTTP call to a remote server. */
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 07 18:57:05 GMT 2025 - 1.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/BridgeInterceptor.kt
import okhttp3.Interceptor import okhttp3.Response import okhttp3.internal.USER_AGENT import okhttp3.internal.toHostHeader import okio.GzipSource import okio.buffer /** * Bridges from application code to network code. First it builds a network request from a user * request. Then it proceeds to call the network. Finally it builds a user response from the network * response. */ class BridgeInterceptor : Interceptor {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 12:06:21 GMT 2026 - 4.2K bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial001_an_py310.py
import gzip from collections.abc import Callable from typing import Annotated from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 1015 bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComWriteResponse.java
import jcifs.internal.util.SMBUtil; /** * SMB1 Write Response message. * * This response contains information about the write operation, * including the number of bytes that were written to the file. */ public class SmbComWriteResponse extends ServerMessageBlock { private long count; /** * Constructs a write response for SMB1 protocol. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndXResponse.java
import jcifs.internal.SmbBasicFileInfo; import jcifs.internal.smb1.AndXServerMessageBlock; import jcifs.internal.util.SMBUtil; import jcifs.util.Hexdump; /** * SMB1 NT Create AndX Response message. * * This response contains information about the created or opened file, * including file handle, attributes, and creation disposition. */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java
// Decode will throw exception as ptype 0 is not a valid response type assertThrows(NdrException.class, () -> m.decode(buf)); } @Test void testRoundTripEncodeDecodeForResponseType() throws Exception { // Create a properly formatted response message NdrBuffer buf = new NdrBuffer(new byte[1024], 0); // Manually encode a response header buf.enc_ndr_small(5); // RPC versionCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponse.java
import jcifs.internal.fscc.FileStandardInfo; import jcifs.internal.smb1.trans.SmbComTransaction; import jcifs.internal.smb1.trans.SmbComTransactionResponse; /** * Trans2 QueryPathInformation response message for file metadata queries. * This class handles the response from a TRANS2_QUERY_PATH_INFORMATION request, * returning various file information levels based on the requested information level. */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.7K bytes - Click Count (0)