http2

RST_STREAM frame in HTTP2

江枫思渺然 提交于 2019-12-23 10:00:06
问题 I read about new feature in http2 RST_STREAM : HTTP/2 adds the RST_STREAM frame to allow a client to change its mind; if the browser navigates away from a page, or the user cancels a download, it can avoid having to open a new connection without wasting all of that bandwidth. How can do this?How Browser can do this?Is there any change in code? 回答1: The browser initiates a request and then changes its mind, either with the user navigating away or by cancelling. In HTTP/1.1, the only choice to

Tomcat 8.5.29 HTTP/2 is not supporting GZIP compression

我与影子孤独终老i 提交于 2019-12-23 03:23:21
问题 I am using Tomcat 8.5.29 and using the respective configuration,I have enabled the HTTP2 support for the site. Below is the configuration in server.xml file. <Connector port="443" protocol="org.apache.coyote.http11.Http11AprProtocol" maxThreads="150" SSLEnabled="true" compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json" compression="on" compressionMinSize="1024" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol

What is the difference between HTTPS Load-Balancer w/ non-TLS backend and HTTPS Load-Balancer w/ TLS backend

北战南征 提交于 2019-12-23 02:54:15
问题 I'm trying to configure load balancer to serve in HTTPS with certificates provide by Lets Encrypt, even though I couldn't do it yet, reading this article gives steps how to configure Self-signed certs Network Load-Balancer w/ TLS backend HTTPS Load-Balancer w/ non-TLS backend HTTPS Load-Balancer w/ TLS backend As I'm intersting only in HTTPS, I wonder what is the difference between this two: HTTPS Load-Balancer w/ non-TLS backend HTTPS Load-Balancer w/ TLS backend But I meant not the obvious

Why do I need to change IE settings to enable HTTP/2 on Windows 10?

强颜欢笑 提交于 2019-12-22 12:38:38
问题 I recently enabled HTTP/2 on a site I was developing. To do this I had to Be on Windows 10 Use a browser that supports HTTP/2 (in my case Chrome) Configure my webserver (iisexpress) to serve the site using https Enable HTTP/2 in the Internet Explorer options It all works, but I'm confused about why 1 and 4 are necessary. Especially 4 as I'm not actually using Internet Explorer. Now the above link suggests that it has something to do with the WININET library and I understand that IE options

Does using image sprites make sense in HTTP/2?

我怕爱的太早我们不能终老 提交于 2019-12-22 03:51:14
问题 The bundling of JS and CSS files won't be necessary in HTTP/2, but what about image sprites? Looking at the demo it seems that it already works way faster than HTTP/1.1, but won't bundling images into sprites make it even faster? I mean, won't the PNG's optimization algorithms work better when all the data is in a single file? 回答1: It depends of your image(s) sizes and format. If the images are big enough, you won't gain much by using sprites, but for small images there are significant gains,

HTTP/2 support in Tomcat 8

别说谁变了你拦得住时间么 提交于 2019-12-22 01:35:01
问题 After some research, I was surprised that I did not not find any resource on HTTP/2 support in Tomcat. Changelogs of 8.0 indicate an experimental support of SPDY and wiki refers to HTTP/2 as a supported spec (http://wiki.apache.org/tomcat/Specifications) but I don't find any tutorial on it. Do you know if it is already possible to enable HTTP/2 on Tomcat? If the answer is yes how I can do that? 回答1: Tomcat does not yet support HTTP/2. HTTP/2 support is planned for Tomcat 9 onwards. It may get

HTTP/2 Server Push in iOS 10

跟風遠走 提交于 2019-12-21 20:24:07
问题 I am trying to get server push working on iOS 10. I am working off of the Akamai HTTP/2 demo. https://http2.akamai.com/demo The following is my attempt at testing server push. @interface ViewController () <NSURLSessionTaskDelegate> @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; NSURLSessionConfiguration *defaultConfigObject = [NSURLSessionConfiguration defaultSessionConfiguration]; NSURLSession *defaultSession = [NSURLSession sessionWithConfiguration:

HTTP/2 with OkHttp

纵饮孤独 提交于 2019-12-21 16:59:17
问题 I am trying to communicate with a HTTP/2 server using OkHttp client. Added to Maven POM: <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>3.2.0</version> </dependency> And this is my test code: OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder().url("https://http2.akamai.com/demo").build(); Response response = client.newCall(request).execute(); System.out.println("Protocol: " + response.protocol()); System.out.println

Does Apache or some other CLIENT JAVA implementation support HTTP/2?

房东的猫 提交于 2019-12-21 13:37:07
问题 I'm looking for java client that can connect to a HTTP/2 based server.. The server is already supporting HTTP/2 API. I don't see the most popular Apache Http client https://hc.apache.org/ still supporting HTTP/2. Does Apache have some implementation for Java client already that supports Http/2? If not, Is there some java client that supports connecting to HTTP/2 preferably on Java 7? 回答1: Jetty's provides two HTTP/2 Java client APIs. Both require Java 8 and the mandatory use of the ALPN, as

Sending HTTP/2 POST request in Ruby

こ雲淡風輕ζ 提交于 2019-12-21 07:56:26
问题 I am trying to use the new Apple Push Notification API, which is based on HTTP/2. I found the http-2 Ruby gem, but the documentation isn’t clear about how to make requests as a client. How to make a HTTP/2 request in Ruby/Rails? 回答1: There is an example of creating HTTP/2 client in this file. It could be adapted to APN requests like this: require 'socket' require 'http/2' payload = '{"foo":"bar"}' device_token = '00fc13adff785122b4ad28809a3420982341241421348097878e577c991de8f0' # example sock