dimanche 25 août 2019

How can I build HttpResponse with multipart ContentType

I have purpose to send in single response several data types: plain/text (or json) and image as bytes. And I see, how I can set contenttype for my response. So and I can set some multipart type. But how I understand, this way leads to difficulties: I need set also content type header for each part of the response. But I cann't find in docs, how can I do that. And is it possible for django?

Thanks for your ideas




Aucun commentaire:

Enregistrer un commentaire