Thursday, August 28, 2014

Re: HttpResponse methods difference

As you see in: https://github.com/django/django/blob/master/django/http/response.py#L370 all three methods have different usecases.

.write(string) <- adds content
.tell() <- returns the length of content
.flush() <- just passing, does nothing (since at lease v1.5)

Cheers

Am Donnerstag, 28. August 2014 02:48:16 UTC+2 schrieb Yarick Antonov:
What the difference between HttpResponse.Write(), HttpResponse.flush() and HttpResponse.tell() methods?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/961ac065-bb0e-408f-82be-9e1f05ce76a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment