- Sort Score
- Result 10 results
- Languages All
Results 361 - 370 of 578 for HEADERS (0.14 sec)
-
docs/extensions/s3zip/examples/boto3/main.py
aws_secret_access_key='YOUR-SECRETACCESSKEY', config=Config(signature_version='s3v4'), region_name='us-east-1') def _add_header(request, **kwargs): request.headers.add_header('x-minio-extract', 'true') event_system = s3.meta.events event_system.register_first('before-sign.s3.*', _add_header) # List zip contents
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 04 21:15:45 UTC 2021 - 771 bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Interceptor.kt
import java.util.concurrent.TimeUnit /** * Observes, modifies, and potentially short-circuits requests going out and the corresponding * responses coming back in. Typically interceptors add, remove, or transform headers on the request * or response. * * Implementations of this interface throw [IOException] to signal connectivity failures. This * includes both natural exceptions such as unreachable servers, as well as synthetic exceptions
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.5K bytes - Viewed (0) -
docs/en/docs/tutorial/query-param-models.md
] } ``` ## Summary You can use **Pydantic models** to declare **query parameters** in **FastAPI**. 😎 /// tip Spoiler alert: you can also use Pydantic models to declare cookies and headers, but you will read about that later in the tutorial. 🤫
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.8K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
fun headersAreRedacted() { val networkInterceptor = HttpLoggingInterceptor(networkLogs).setLevel( Level.HEADERS, ) networkInterceptor.redactHeader("sEnSiTiVe") val applicationInterceptor = HttpLoggingInterceptor(applicationLogs).setLevel( Level.HEADERS, ) applicationInterceptor.redactHeader("sEnSiTiVe") client = OkHttpClient.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 09:14:38 UTC 2024 - 37.6K bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial001.py
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 return self._body class GzipRoute(APIRoute): def get_route_handler(self) -> Callable:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 973 bytes - Viewed (0) -
cmd/api-response.go
mimeXML mimeType = "application/xml" ) // writeSuccessResponseJSON writes success headers and response if any, // with content-type set to `application/json`. func writeSuccessResponseJSON(w http.ResponseWriter, response []byte) { writeResponse(w, http.StatusOK, response, mimeJSON) } // writeSuccessResponseXML writes success headers and response if any, // with content-type set to `application/xml`.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 19:27:06 UTC 2024 - 33.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Call.kt
* leaking resources callers must [close the response body][ResponseBody] or the response. * * Note that transport-layer success (receiving a HTTP response code, headers and body) does not * necessarily indicate application-layer success: `response` may still indicate an unhappy HTTP * response code like 404 or 500. *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 3.6K bytes - Viewed (0) -
src/main/resources/fess_config.properties
api.search.accept.referers= api.search.scroll=false api.json.response.headers= api.json.response.exception.included=false api.gsa.response.headers= api.gsa.response.exception.included=false api.dashboard.response.headers= api.cors.allow.origin=* api.cors.allow.methods=GET, POST, OPTIONS, DELETE, PUT api.cors.max.age=3600 api.cors.allow.headers=Origin, Content-Type, Accept, Authorization, X-Requested-With
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Tue Oct 01 14:13:38 UTC 2024 - 30.9K bytes - Viewed (0) -
mockwebserver/README.md
from your test's `tearDown()`. ### API #### MockResponse Mock responses default to an empty response body and a `200` status code. You can set a custom body with a string, input stream or byte array. Also add headers with a fluent builder API. ```java MockResponse response = new MockResponse() .addHeader("Content-Type", "application/json; charset=utf-8") .addHeader("Cache-Control", "no-cache") .setBody("{}"); ```
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 5K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
val method: String? by option("-X", "--request", help = "Specify request command to use") val data: String? by option("-d", "--data", help = "HTTP POST data") val headers: List<String>? by option("-H", "--header", help = "Custom header to pass to server").multiple() val userAgent: String by option("-A", "--user-agent", help = "User-Agent to send to server").default(NAME + "/" + versionString())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0)