Sha256: 35d4f3157478e3e8f7f37e6a9967c6d10df03527c0de877b357ecad40b0bce4b

Contents?: true

Size: 420 Bytes

Versions: 37

Compression:

Stored size: 420 Bytes

Contents

package http_parser;

public enum ParserType {
HTTP_REQUEST, HTTP_RESPONSE, HTTP_BOTH;

	public static ParserType parse(String s) {
		     if ("HTTP_REQUEST".equalsIgnoreCase(s))  { return HTTP_REQUEST; }
		else if ("HTTP_RESPONSE".equalsIgnoreCase(s)) { return HTTP_RESPONSE; }
		else if ("HTTP_BOTH".equalsIgnoreCase(s))     { return HTTP_BOTH; }
		else                                          { return null; }
	}
}

Version data entries

37 entries across 37 versions & 7 rubygems

Version Path
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/http_parser.rb-0.8.0/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/http_parser.rb-0.8.0/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/http_parser.rb-0.8.0/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/http_parser.rb-0.8.0/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/http_parser.rb-0.8.0/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
http_parser.rb-0.8.0 ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
http_parser.rb-0.7.0 ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
midori_http_parser-0.6.1.3 ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
midori_http_parser-0.6.1.3-java ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
midori_http_parser-0.6.1.2-java ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
midori_http_parser-0.6.1.2 ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
midori_http_parser-0.6.1.1-java ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
midori_http_parser-0.6.1.1 ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
midori_http_parser-0.6.1 ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
http_parser.rb-0.6.0-java ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
http_parser.rb-0.6.0 ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
http_parser.rb-0.6.0.beta.2-java ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java
http_parser.rb-0.6.0.beta.2 ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserType.java