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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -