rflow-components-http 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,8 +76,24 @@ class RFlow
|
|
76
76
|
processing_event = RFlow::Message::ProcessingEvent.new(server.instance_uuid, Time.now.utc)
|
77
77
|
|
78
78
|
request_message = RFlow::Message.new('RFlow::Message::Data::HTTP::Request')
|
79
|
-
request_message.data.uri = @http_request_uri
|
80
79
|
|
80
|
+
request_message.data.client_ip = @client_ip
|
81
|
+
request_message.data.client_port = @client_port
|
82
|
+
request_message.data.server_ip = @server_ip
|
83
|
+
request_message.data.server_port = @server_port
|
84
|
+
|
85
|
+
request_message.data.method = @http_request_method
|
86
|
+
request_message.data.uri = @http_request_uri
|
87
|
+
request_message.data.query_string = @http_query_string
|
88
|
+
request_message.data.protocol = @http_protocol
|
89
|
+
request_message.data.content = @http_post_content
|
90
|
+
request_message.data.headers = {}
|
91
|
+
|
92
|
+
@http_headers.split(/\0/).each do |header|
|
93
|
+
name, val = header.split(/:\s*/, 2)
|
94
|
+
request_message.data.headers[name] = val
|
95
|
+
end
|
96
|
+
|
81
97
|
processing_event.context = signature
|
82
98
|
processing_event.completed_at = Time.now.utc
|
83
99
|
request_message.provenance << processing_event
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rflow-components-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -64,17 +64,17 @@ dependencies:
|
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.8
|
69
|
+
version: '0.8'
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.8
|
77
|
+
version: '0.8'
|
78
78
|
description: HTTP client and server components for the RFlow FBP framework. Also
|
79
79
|
includes the necessary HTTP::Request and HTTP::Response message types
|
80
80
|
email:
|