This is the last bunch of headers that should use the new macro. Moved them out of their own folder so that the macro works. Changed them, so that they are more in line with the other headers. BREAKING CHANGE: `AccessControlAllowHeaders` and `AccessControlRequestHeaders` values are case insensitive now. `AccessControlAllowOrigin` variants are now `Any` and `Value` to match the other headers.
		
			
				
	
	
		
			10 lines
		
	
	
		
			432 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			432 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use method::Method;
 | |
| 
 | |
| header! {
 | |
|     #[doc="`Access-Control-Request-Method` header, part of"]
 | |
|     #[doc="[CORS](www.w3.org/TR/cors/#access-control-request-method-request-header)"]
 | |
|     #[doc=""]
 | |
|     #[doc="The `Access-Control-Request-Method` header indicates which method will be"]
 | |
|     #[doc="used in the actual request as part of the preflight request."]
 | |
|     (AccessControlRequestMethod, "Access-Control-Request-Method") => [Method]
 | |
| } |