add SetMaxMemory function for POST and PUT request method