2010/10/18 bearophile <[email protected]>:
> In what cases is this useful? Are you able to show me an example of situation 
> where it is useful?
>
> Bye,
> bearophile
>

Bearophile, I probably didn't make it very clear, so I'll try again:

Now:
    if (headers.get("transfer-encoding", "") == "chunked")
More appealing in my opinion:
    if (headers.get("transfer-encoding") == "chunked")

In other words: "Does this key-value pair exist?"

Another example from the HTTP domain:
    if(headers.get("connection", "") == "close")

Reply via email to