This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aliexpress.international.http.client; | |
import okhttp3.*; | |
import org.junit.Test; | |
import javax.net.ssl.*; | |
import java.io.BufferedInputStream; | |
import java.io.InputStream; | |
import java.security.KeyStore; | |
import java.security.cert.Certificate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.atom.http.server; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import org.eclipse.jetty.util.ConcurrentArrayQueue; | |
import javax.ws.rs.Consumes; | |
import javax.ws.rs.FormParam; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.POST; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 54a07092c231040b720f6039b55010f4d02a3bba | |
Author: sergey.r <sergey.r@alibaba-inc.com> | |
Date: Tue May 16 12:20:23 2017 +0300 | |
Cross browser filter, fixCheckStyle | |
diff --git a/game/src/main/java/ru/atom/game/controller/Ticker.java b/game/src/main/java/ru/atom/game/controller/Ticker.java | |
index a07be06..2c947e9 100644 | |
--- a/game/src/main/java/ru/atom/game/controller/Ticker.java | |
+++ b/game/src/main/java/ru/atom/game/controller/Ticker.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<finalName>project-name</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<version>${spring-boot.version}</version> | |
<configuration> | |
<executable>false</executable> | |
<excludeDevtools>true</excludeDevtools> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val token = ... | |
val yourFile = ... | |
val response = httpPost { | |
url("https://www.googleapis.com/upload/drive/v3/files?uploadType=media") | |
header { | |
"Authorization" to "Bearer $token" | |
} | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val token = ... | |
val yourFile = ... | |
val response = httpPost { | |
url("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart") | |
header { | |
"Authorization" to "Bearer $token" | |
} | |
multipartBody { |