@@ -410,9 +410,10 @@ impl<CookieStoreImpl: CookieStore + 'static> Impit<CookieStoreImpl> {
410410 pub async fn get (
411411 & self ,
412412 url : String ,
413+ body : Option < Vec < u8 > > ,
413414 options : Option < RequestOptions > ,
414415 ) -> Result < Response , ImpitError > {
415- self . make_request ( Method :: GET , url, None , options) . await
416+ self . make_request ( Method :: GET , url, body , options) . await
416417 }
417418
418419 /// Makes a `HEAD` request to the specified URL.
@@ -424,9 +425,10 @@ impl<CookieStoreImpl: CookieStore + 'static> Impit<CookieStoreImpl> {
424425 pub async fn head (
425426 & self ,
426427 url : String ,
428+ body : Option < Vec < u8 > > ,
427429 options : Option < RequestOptions > ,
428430 ) -> Result < Response , ImpitError > {
429- self . make_request ( Method :: HEAD , url, None , options) . await
431+ self . make_request ( Method :: HEAD , url, body , options) . await
430432 }
431433
432434 /// Makes an OPTIONS request to the specified URL.
@@ -438,9 +440,10 @@ impl<CookieStoreImpl: CookieStore + 'static> Impit<CookieStoreImpl> {
438440 pub async fn options (
439441 & self ,
440442 url : String ,
443+ body : Option < Vec < u8 > > ,
441444 options : Option < RequestOptions > ,
442445 ) -> Result < Response , ImpitError > {
443- self . make_request ( Method :: OPTIONS , url, None , options) . await
446+ self . make_request ( Method :: OPTIONS , url, body , options) . await
444447 }
445448
446449 /// Makes a `TRACE` request to the specified URL.
@@ -466,9 +469,10 @@ impl<CookieStoreImpl: CookieStore + 'static> Impit<CookieStoreImpl> {
466469 pub async fn delete (
467470 & self ,
468471 url : String ,
472+ body : Option < Vec < u8 > > ,
469473 options : Option < RequestOptions > ,
470474 ) -> Result < Response , ImpitError > {
471- self . make_request ( Method :: DELETE , url, None , options) . await
475+ self . make_request ( Method :: DELETE , url, body , options) . await
472476 }
473477
474478 /// Makes a `POST` request to the specified URL.
0 commit comments