介绍
我们的使命是帮助你描述你想要的网络。考虑到这一点,我们准备了一套最佳实践,你可以采用这些实践来改进你的网络描述。
¥Our mission is to help you describe the network you want. With that in mind, we have prepared a set of best practices you can employ to improve your network descriptions.
Structuring handlers
Manage a large number of request handlers.
Network behavior overrides
Override network behaviors on runtime.
Avoid request assertions
Learn why you should not assert requests directly.
Custom request predicate
Intercept requests by custom criteria.
Dynamic mock scenarios
Apply different network scenarios on runtime.
Managing the worker
Learn how to manage the worker script updates.