module documentation

Helper functions for serializing (and deserializing) requests.
Function ​_find​_method Undocumented
Function ​_get​_method Undocumented
Function request​_from​_dict Create Request object from a dict.
Function request​_to​_dict Convert Request object to a dict.
def _find_method(obj, func):

Undocumented

def _get_method(obj, name):

Undocumented

def request_from_dict(d, spider=None):

Create Request object from a dict.

If a spider is given, it will try to resolve the callbacks looking at the spider for methods with the same name.

def request_to_dict(request, spider=None):

Convert Request object to a dict.

If a spider is given, it will try to find out the name of the spider method used in the callback and store that as the callback.