playframework - reading header of each part in multipart request in Scala Play -
i trying extract headers of each part in multipart request using scala play. inbuilt multipart handler parses data in filepart. filepart doesn't have option read individual headers of each part. has access content type header.
is there ready use api this? or there simple way handle rather in writing new custom bodyparser.
there overloaded form of multipartformhandler
method takes parthandler
:
type parthandler[a] = partialfunction[map[string, string], iteratee[array[byte], a]]
the map[string, string]
contains headers. saves having write whole new body parser, have write function takes headers , produces iteratee
consume corresponding data.
Comments
Post a Comment