Types for structured receiber
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
		
							parent
							
								
									41d9328ac8
								
							
						
					
					
						commit
						b9d5a54d51
					
				|  | @ -56,6 +56,14 @@ export class BinaryHTTPEmitter { | |||
|   public emit(event: Cloudevent): Promise<any>; | ||||
| } | ||||
| 
 | ||||
| /** | ||||
|  * HTTP receiver for Structured mode | ||||
|  */ | ||||
| export class StructuredHTTPReceiver { | ||||
|   public check(payload: any, headers: Map<String, String>): void; | ||||
|   public parse(payload: any, headers: Map<String, String>): Cloudevent; | ||||
| } | ||||
| 
 | ||||
| /** | ||||
|  * Function to create CloudEvents instances | ||||
|  */ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue