Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							e3a14098f7 
							
						 
					 
					
						
						
							
							bump proxmox-http to 0.5.5-1  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> 
						
					 
					
						2021-11-15 11:05:55 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							81e959548b 
							
						 
					 
					
						
						
							
							proxmox-http: impl RateLimiterVec  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> 
						
					 
					
						2021-11-15 11:01:03 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							b8724f4952 
							
						 
					 
					
						
						
							
							bump proxmox-http version to 0.5.4-1  
						
						
						
					 
					
						2021-11-14 08:19:15 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							b9a1d62e47 
							
						 
					 
					
						
						
							
							proxmox-http: RateLimit - remove average_rate  
						
						... 
						
						
						
						Instead, add a method to return overall traffic. 
						
					 
					
						2021-11-14 08:15:42 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							100848de10 
							
						 
					 
					
						
						
							
							bump proxmox-http version to 0.5.3-1  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> 
						
					 
					
						2021-11-13 17:38:41 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							13276cc619 
							
						 
					 
					
						
						
							
							proxmox-http: use repr(C) for RateLimiter  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> 
						
					 
					
						2021-11-13 17:38:18 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							8734d0c2f9 
							
						 
					 
					
						
						
							
							proxmox-http: use SharedRateLimit trait object for RateLimitedStream  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> 
						
					 
					
						2021-11-13 17:38:10 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							937d1a6095 
							
						 
					 
					
						
						
							
							proxmox-http: define a RateLimit trait  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> 
						
					 
					
						2021-11-13 17:38:00 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							28e1d4c342 
							
						 
					 
					
						
						
							
							bump proxmox-http version to 0.5.2-1  
						
						
						
					 
					
						2021-11-12 09:24:17 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							2f221df863 
							
						 
					 
					
						
						
							
							RateLimiter: add update_rate method  
						
						
						
					 
					
						2021-11-10 09:51:08 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							0c27d5da17 
							
						 
					 
					
						
						
							
							RateLimitedStream: implement peer_addr  
						
						
						
					 
					
						2021-11-10 09:51:08 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							e0a9982dd1 
							
						 
					 
					
						
						
							
							RateLimiter: avoid panic in time computations  
						
						
						
					 
					
						2021-11-10 09:51:08 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							e0305f724b 
							
						 
					 
					
						
						
							
							RateLimitedStream: allow periodic limiter updates  
						
						
						
					 
					
						2021-11-10 09:51:08 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							00ca0b7fae 
							
						 
					 
					
						
						
							
							HttpsConnector: use RateLimitedStream  
						
						... 
						
						
						
						So that we can limit used bandwidth.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> 
						
					 
					
						2021-11-10 09:51:08 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							ded24b3f4c 
							
						 
					 
					
						
						
							
							RateLimitedStream: implement poll_write_vectored  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> 
						
					 
					
						2021-11-10 09:51:08 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							c94ad247b1 
							
						 
					 
					
						
						
							
							Implement a rate limiting stream (AsyncRead, AsyncWrite)  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> 
						
					 
					
						2021-11-10 09:51:08 +01:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							e848148f5c 
							
						 
					 
					
						
						
							
							websocket: adapt for client connection  
						
						... 
						
						
						
						previously, this was only used for the server side handling of web
sockets. by making the mask part of the WebSocket struct and making some
of the fns associated, we can re-use this for client-side connections
such as in proxmox-websocket-tunnel.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-11-09 15:45:56 +01:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							a0cfb9c20d 
							
						 
					 
					
						
						
							
							bump proxmox-http version to 0.5.1-1  
						
						... 
						
						
						
						Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> 
						
					 
					
						2021-10-21 07:37:30 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							4ccd6256a8 
							
						 
					 
					
						
						
							
							update proxmox-http to 0.5 for the split  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-10-11 12:34:14 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							f189895cef 
							
						 
					 
					
						
						
							
							fix deprecated use of std::u16 module  
						
						... 
						
						
						
						integer primitive type modules are deprecated, use
associated constants instead
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-10-04 15:03:50 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							0f2caafc4e 
							
						 
					 
					
						
						
							
							bump proxmox to 0.13.0-1 and proxmox-api-macro to 0.5.0  
						
						... 
						
						
						
						and proxmox-http to 0.4.0... urgh
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-08-25 09:41:17 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							8c125364e4 
							
						 
					 
					
						
						
							
							websocket: fix doc test  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-08-24 15:19:47 +02:00 
						 
				 
			
				
					
						
							
							
								Thomas Lamprecht 
							
						 
					 
					
						
						
						
						
							
						
						
							44d571a8e0 
							
						 
					 
					
						
						
							
							proxmox-http: bump version to 0.3.0  
						
						... 
						
						
						
						Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> 
						
					 
					
						2021-07-20 17:45:29 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							5cbddad172 
							
						 
					 
					
						
						
							
							update versions in generated control files  
						
						
						
					 
					
						2021-07-20 15:45:45 +02:00 
						 
				 
			
				
					
						
							
							
								Dietmar Maurer 
							
						 
					 
					
						
						
						
						
							
						
						
							82d7a1cdbf 
							
						 
					 
					
						
						
							
							bump proxmox version to 0.12.0-1  
						
						
						
					 
					
						2021-07-20 15:45:45 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							fff7b926ee 
							
						 
					 
					
						
						
							
							proxmox-http: bump version to 0.2.1  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-18 10:31:51 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							480e213f7c 
							
						 
					 
					
						
						
							
							websocket: add note about compat removal  
						
						... 
						
						
						
						this major release still needs to have an incompatible, the next one can
drop setting a protocol client-side, and the one after that can remove
the protocol handling on the server side.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-18 09:26:51 +02:00 
						 
				 
			
				
					
						
							
							
								Dominik Csapak 
							
						 
					 
					
						
						
						
						
							
						
						
							0786b4b98c 
							
						 
					 
					
						
						
							
							proxmox-http/websocket: remove subprotocol handling  
						
						... 
						
						
						
						we do not support websocket subprotocols, but for compatibility with
current clients (novnc, pve-xtermjs) we have to reply with the one requested,
else this is a protocol error and browsers will error out
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> 
						
					 
					
						2021-05-18 09:22:05 +02:00 
						 
				 
			
				
					
						
							
							
								Dominik Csapak 
							
						 
					 
					
						
						
						
						
							
						
						
							232d87531e 
							
						 
					 
					
						
						
							
							proxmox-http/websocket: remove code for 'text' frames  
						
						... 
						
						
						
						we never actually sent text frames, nor did any client request them.
Also, no validity check ever ocurred, so technically it was against
the spec.
Simply remove the code handling sending out text frames. If we need
to actually handle that, we can always create a 'WebSocketStringWriter'
or similar.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> 
						
					 
					
						2021-05-18 09:22:05 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							e0dcc337ac 
							
						 
					 
					
						
						
							
							rustfmt fixup  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-05-17 12:25:49 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							242a6ab216 
							
						 
					 
					
						
						
							
							doc fixups  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-05-17 11:39:11 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							44a2cab602 
							
						 
					 
					
						
						
							
							bump d/control  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-05-17 11:38:52 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							0c448080c8 
							
						 
					 
					
						
						
							
							bump proxmox-http to 0.2.0-1  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-05-17 11:25:42 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							76c25a9612 
							
						 
					 
					
						
						
							
							add some more module level docs  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-05-17 11:25:42 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							c9b4a4f39b 
							
						 
					 
					
						
						
							
							uri: drop anyhow::Error and improve docs  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-05-17 11:25:42 +02:00 
						 
				 
			
				
					
						
							
							
								Wolfgang Bumiller 
							
						 
					 
					
						
						
						
						
							
						
						
							ca9dd7ec36 
							
						 
					 
					
						
						
							
							reorganize crate  
						
						... 
						
						
						
						it's a 'http' utility crate
* the extra 'http' module is redundant
* the module name 'helpers' as a public path doesn't say
  much about what it does
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> 
						
					 
					
						2021-05-17 11:03:31 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							37ae288efd 
							
						 
					 
					
						
						
							
							http: update d/control  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:54:32 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							94378967e3 
							
						 
					 
					
						
						
							
							http: rustfmt  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:54:01 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							910949db01 
							
						 
					 
					
						
						
							
							http: make clippy happy  
						
						... 
						
						
						
						again.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:53:42 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							667bd8ab83 
							
						 
					 
					
						
						
							
							http: takeover simple HTTP client from proxmox_backup  
						
						... 
						
						
						
						adapted to use already moved helpers/code.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:53:18 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							80b423f30f 
							
						 
					 
					
						
						
							
							http: takeover tools::http from proxmox_backup  
						
						... 
						
						
						
						the parts that were not already moved.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:53:04 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							7f56e0774c 
							
						 
					 
					
						
						
							
							http: takeover ProxyConfig from proxmox_backup  
						
						... 
						
						
						
						adapted to use moved build_authority helper.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:52:29 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							f305be9583 
							
						 
					 
					
						
						
							
							http: takeover build_authority helper from proxmox_backup  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:45:35 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							6c5028512b 
							
						 
					 
					
						
						
							
							http: takeover MaybeTlsStream from proxmox_backup  
						
						... 
						
						
						
						this is just a (rather HTTP specific) wrapper, so put it into a
'wrapper' module for now.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:45:04 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							cbaa3b45bc 
							
						 
					 
					
						
						
							
							http: make clippy happy  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:43:28 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							5153e68cab 
							
						 
					 
					
						
						
							
							http: takeover websocket feature from proxmox  
						
						... 
						
						
						
						adapted: use statements for proxmox::*, use statements for doctests
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:43:19 +02:00 
						 
				 
			
				
					
						
							
							
								Fabian Grünbichler 
							
						 
					 
					
						
						
						
						
							
						
						
							7b7e1413ff 
							
						 
					 
					
						
						
							
							meta: add empty proxmox-http sub-crate  
						
						... 
						
						
						
						Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> 
						
					 
					
						2021-05-17 09:42:16 +02:00