dreamhead / moco

Easy Setup Stub Server
MIT License
4.37k stars 1.08k forks source link

moco怎么模拟入参为定长报文,出参同样返回定长报文 #315

Open LeeLiang110 opened 2 years ago

LeeLiang110 commented 2 years ago

比如入参为 000|665666653522233|09|8978 出参返回为 0000|887666|8978

dreamhead commented 2 years ago

@LeeLiang110 I don't understand your question. If your request is fixed and response is fixed, you can just write your config like this:

server.request(by("000|665666653522233|09|8978")).response("0000|887666|8978");