exrequester v0.0.1 EXRequest.ParamsChecker

Checks that the function name and params are correct for the definition and invocation

Summary

Functions

Checks that the function defined with the parameters is correctly defined for the URL and Header keys

Checks that the function invocation with the parameters is correctly defined for the URL and Header keys

Checks that the url, header_keys and function parameters match

Get an error string for missing and extra params

Get the proposed method definition

Get the proposed method definition

Get url parametrs from a url

Functions

check_definition_params(function_name, function_params, url, header_keys)

Checks that the function defined with the parameters is correctly defined for the URL and Header keys

Parameters:

  • function_name - The function name used
  • function_params - The function parameters used in definition
  • url - The url used to define the function
  • header_keys - The headers used to define the function
check_invocation_params(function_name, function_params, url, header_keys)

Checks that the function invocation with the parameters is correctly defined for the URL and Header keys

Parameters:

  • function_name - The function name used
  • function_params - The function parameters used in invocation
  • url - The url used to invoke the function
  • header_keys - The headers used to invoke the function
check_params(url, header_params, params)

Checks that the url, header_keys and function parameters match

Parameters:

  • url - The url used to invoke the function
  • header_params - The headers used to invoke the function
  • params - The function parameters used in invocation
definition_param_error_report(list)

Get an error string for missing and extra params

Parameters:

  • missing - The missing parameters in the definition
  • extra - The extra parameters in the definition
propsed_method_definition(list)

Get the proposed method definition

Parameters:

  • func_name - The function name used
  • params - The parameters used in the function
propsed_method_invocation(list)

Get the proposed method definition

Parameters:

  • func_name - The function name used
  • params - The parameters used in the function
url_params(url)

Get url parametrs from a url