@@ -351,6 +351,10 @@ pub trait HttpContext: Context {
351
351
hostcalls:: add_map_value_bytes ( MapType :: HttpRequestHeaders , name, value) . unwrap ( )
352
352
}
353
353
354
+ fn remove_http_request_header ( & self , name : & str ) {
355
+ hostcalls:: remove_map_value ( MapType :: HttpRequestHeaders , name) . unwrap ( )
356
+ }
357
+
354
358
fn on_http_request_body ( & mut self , _body_size : usize , _end_of_stream : bool ) -> Action {
355
359
Action :: Continue
356
360
}
@@ -407,6 +411,10 @@ pub trait HttpContext: Context {
407
411
hostcalls:: add_map_value_bytes ( MapType :: HttpRequestTrailers , name, value) . unwrap ( )
408
412
}
409
413
414
+ fn remove_http_request_trailer ( & self , name : & str ) {
415
+ hostcalls:: remove_map_value ( MapType :: HttpRequestTrailers , name) . unwrap ( )
416
+ }
417
+
410
418
fn resume_http_request ( & self ) {
411
419
hostcalls:: resume_http_request ( ) . unwrap ( )
412
420
}
@@ -459,6 +467,10 @@ pub trait HttpContext: Context {
459
467
hostcalls:: add_map_value_bytes ( MapType :: HttpResponseHeaders , name, value) . unwrap ( )
460
468
}
461
469
470
+ fn remove_http_response_header ( & self , name : & str ) {
471
+ hostcalls:: remove_map_value ( MapType :: HttpResponseHeaders , name) . unwrap ( )
472
+ }
473
+
462
474
fn on_http_response_body ( & mut self , _body_size : usize , _end_of_stream : bool ) -> Action {
463
475
Action :: Continue
464
476
}
@@ -515,6 +527,10 @@ pub trait HttpContext: Context {
515
527
hostcalls:: add_map_value_bytes ( MapType :: HttpResponseTrailers , name, value) . unwrap ( )
516
528
}
517
529
530
+ fn remove_http_response_trailer ( & self , name : & str ) {
531
+ hostcalls:: remove_map_value ( MapType :: HttpResponseTrailers , name) . unwrap ( )
532
+ }
533
+
518
534
fn resume_http_response ( & self ) {
519
535
hostcalls:: resume_http_response ( ) . unwrap ( )
520
536
}
0 commit comments