DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

📦 Returns 'x-www-form-urlencoded' string data

from functorflow import f

data = {
  'str' : 'val',
  'num' : 0,
  'arr' : [3, {'prop' : False}, 1, None, 6],
}

r = f('form-urlencoded', data)
print(r)# str=val&num=0&arr%5B0%5D=3&arr%5B1%5D%5Bprop%5D=false&arr%5B2%5D=1&arr%5B3%5D=null&arr%5B4%5D=6
Enter fullscreen mode Exit fullscreen mode

Top comments (0)