Example #1
0
 def ensure_hapic_data(
         cls, func_kwargs: typing.Dict[str, typing.Any]) -> HapicData:
     # TODO: Permit other name than "hapic_data" ? see #7
     try:
         return func_kwargs["hapic_data"]
     except KeyError:
         hapic_data = HapicData()
         func_kwargs["hapic_data"] = hapic_data
         return hapic_data
Example #2
0
 def update_hapic_data(
     self, hapic_data: HapicData, processed_data: typing.Dict[str, typing.Any]
 ) -> typing.Any:
     hapic_data.query = processed_data
Example #3
0
 def update_hapic_data(self, hapic_data: HapicData,
                       processed_data: typing.Any) -> None:
     hapic_data.files = processed_data
Example #4
0
 def update_hapic_data(
     self, hapic_data: HapicData,
     processed_data: typing.Any,
 ) -> None:
     hapic_data.headers = processed_data