/*
* Licensed to the Apache Software Foundation ( ASF ) under one or more
* contributor license agreements . See the NOTICE file distributed with
* this work for additional information regarding copyright ownership .
* The ASF licenses this file to You under the Apache License , Version 2 . 0
* ( the " License " ) ; you may not use this file except in compliance with
* the License . You may obtain a copy of the License at
*
* http : //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing , software
* distributed under the License is distributed on an " AS IS " BASIS ,
* 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 org.apache.coyote.http2;
enum Http2Error {
// @formatter:off
NO_ERROR (0 x00),
PROTOCOL_ERROR (0 x01),
INTERNAL_ERROR (0 x02),
FLOW_CONTROL_ERROR (0 x03),
SETTINGS_TIMEOUT (0 x04),
STREAM_CLOSED (0 x05),
FRAME_SIZE_ERROR (0 x06),
REFUSED_STREAM (0 x07),
CANCEL (0 x08),
COMPRESSION_ERROR (0 x09),
CONNECT_ERROR (0 x0a),
ENHANCE_YOUR_CALM (0 x0b),
INADEQUATE_SECURITY (0 x0c),
HTTP_1_1_REQUIRED (0 x0d);
// @formatter:on
private final long code;
Http2Error(long code) {
this .code = code;
}
long getCode() {
return code;
}
byte [] getCodeBytes() {
byte [] codeByte = new byte [4 ];
ByteUtil.setFourBytes(codeByte, 0 , code);
return codeByte;
}
}
Messung V0.5 in Prozent C=92 H=87 G=89
¤ Dauer der Verarbeitung: 0.2 Sekunden
¤
*© Formatika GbR, Deutschland