- Sort Score
- Result 10 results
- Languages All
Results 841 - 850 of 1,989 for GitHub (0.1 sec)
-
samples/guide/src/main/java/okhttp3/recipes/PostFile.java
private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { File file = new File("README.md"); Request request = new Request.Builder() .url("https://api.github.com/markdown/raw") .post(RequestBody.create(file, MEDIA_TYPE_MARKDOWN)) .build(); try (Response response = client.newCall(request).execute()) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat May 25 18:02:55 UTC 2019 - 1.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/ParseResponseWithMoshi.kt
private val moshi = Moshi.Builder().build() private val gistJsonAdapter = moshi.adapter(Gist::class.java) fun run() { val request = Request.Builder() .url("https://api.github.com/gists/c2a7c39532239ff261be") .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/request-forms-and-files.md
# 请求表单与文件 FastAPI 支持同时使用 `File` 和 `Form` 定义文件和表单字段。 /// info | "说明" 接收上传文件或表单数据,要预先安装 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>。 例如,`pip install python-multipart`。 /// ## 导入 `File` 与 `Form` ```Python hl_lines="1" {!../../docs_src/request_forms_and_files/tutorial001.py!} ``` ## 定义 `File` 与 `Form` 参数 创建文件和表单参数的方式与 `Body` 和 `Query` 一样:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.1K bytes - Viewed (0) -
istioctl/pkg/clioptions/control_plane.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package clioptions import "github.com/spf13/cobra" // ControlPlaneOptions defines common options used by istioctl. type ControlPlaneOptions struct { // Revision is the istio.io/rev control plane revision Revision string }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Mar 01 05:47:27 UTC 2021 - 1.1K bytes - Viewed (0) -
docs/pt/docs/advanced/additional-responses.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.3K bytes - Viewed (0) -
internal/grid/grid.go
package grid import ( "context" "crypto/tls" "errors" "fmt" "io" "net" "net/http" "strconv" "strings" "sync" "time" "github.com/gobwas/ws" "github.com/gobwas/ws/wsutil" ) // ErrDisconnected is returned when the connection to the remote has been lost during the call. var ErrDisconnected = RemoteErr("remote disconnected") const (
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 6.9K bytes - Viewed (0) -
cni/pkg/install/cniconfig.go
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 18:38:14 UTC 2024 - 8.2K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/util.go
// limitations under the License. package sdscompare import ( "crypto/x509" "encoding/pem" "fmt" "time" envoy_admin "github.com/envoyproxy/go-control-plane/envoy/admin/v3" auth "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3" "istio.io/istio/istioctl/pkg/util/configdump" "istio.io/istio/pkg/log" )
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Oct 28 19:52:53 UTC 2024 - 8.5K bytes - Viewed (0) -
bin/update_ztunnel.sh
ROOTDIR=$(dirname "${SCRIPTPATH}") cd "${ROOTDIR}" # Get the sha of top commit # $1 = repo function getSha() { local dir result dir=$(mktemp -d) git clone --depth=1 "https://github.com/istio/${1}.git" -b "${UPDATE_BRANCH}" "${dir}" result="$(cd "${dir}" && git rev-parse HEAD)" rm -rf "${dir}" echo "${result}" }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Apr 11 17:50:01 UTC 2023 - 1.1K bytes - Viewed (0) -
okhttp-logging-interceptor/README.md
logging.redactHeader("Authorization"); logging.redactHeader("Cookie"); ``` Download -------- ```kotlin implementation("com.squareup.okhttp3:logging-interceptor:4.12.0") ```
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 1.3K bytes - Viewed (0)