File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
src/main/java/com/ning/http/client/providers/netty/handler Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2014 AsyncHttpClient Project. All rights reserved.
3
+ *
4
+ * This program is licensed to you under the Apache License Version 2.0,
5
+ * and you may not use this file except in compliance with the Apache License Version 2.0.
6
+ * You may obtain a copy of the Apache License Version 2.0 at
7
+ * http://www.apache.org/licenses/LICENSE-2.0.
8
+ *
9
+ * Unless required by applicable law or agreed to in writing,
10
+ * software distributed under the Apache License Version 2.0 is distributed on an
11
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
13
+ */
1
14
package com .ning .http .client .providers .netty .handler ;
2
15
3
16
import org .jboss .netty .handler .codec .http .HttpRequest ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2014 AsyncHttpClient Project. All rights reserved.
3
+ *
4
+ * This program is licensed to you under the Apache License Version 2.0,
5
+ * and you may not use this file except in compliance with the Apache License Version 2.0.
6
+ * You may obtain a copy of the Apache License Version 2.0 at
7
+ * http://www.apache.org/licenses/LICENSE-2.0.
8
+ *
9
+ * Unless required by applicable law or agreed to in writing,
10
+ * software distributed under the Apache License Version 2.0 is distributed on an
11
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
13
+ */
1
14
package com .ning .http .client .providers .netty .handler ;
2
15
3
16
import org .jboss .netty .handler .codec .http .HttpHeaders ;
4
17
import org .jboss .netty .handler .codec .http .HttpMessage ;
5
18
import org .jboss .netty .handler .codec .http .HttpRequest ;
6
19
import org .jboss .netty .handler .codec .http .HttpResponse ;
7
20
21
+ /**
22
+ * Connection strategy implementing standard HTTP 1.1 behaviour.
23
+ */
8
24
public class Http1Point1ConnectionStrategy implements ConnectionStrategy {
9
25
26
+ /**
27
+ * Implemented in accordance with RFC 7230 section 6.1
28
+ * https://tools.ietf.org/html/rfc7230#section-6.1
29
+ */
10
30
@ Override
11
31
public boolean keepAlive (HttpRequest httpRequest , HttpResponse response ) {
12
32
return isConnectionKeepAlive (httpRequest ) && isConnectionKeepAlive (response );
You can’t perform that action at this time.
0 commit comments