dotnet / dotnet/dotnet-api-docs
Sample works without setting ContentEncoding
- Lingua principale
- C#
- Stelle
- 949
- Fork
- 1.7k
- Merge medio
- 2g 19h
- PR unite (30g)
- 52
Descrizione
Since the sample writes binary data, it's not clear why we need to set the `ContentEncoding` property. Does that cause an HTTP header to be automatically added? If not, who is using the value of `ContentEncoding`, and why does it work when I do not change the property?
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 7325d31c-5cde-9a56-0a16-04f6e12020a2
* Version Independent ID: 4e4e5ad2-e362-14c6-f97d-4bbe7b75d76d
* Content: [HttpListenerResponse.ContentEncoding Property (System.Net)](https://docs.microsoft.com/en-us/dotnet/api/system.net.httplistenerresponse.contentencoding?view=netframework-4.7.2)
* Content Source: [xml/System.Net/HttpListenerResponse.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Net/HttpListenerResponse.xml)
* Product: **dotnet-api**
* GitHub Login: @karelz
* Microsoft Alias: **ncldev**
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Leggi prima xml/System.Net/HttpListenerResponse.xml e la voce dell’API ContentEncoding collegata. Traccia il comportamento della risposta binaria dell’esempio referenziato e verifica se la proprietà influisce su un’intestazione HTTP o su un altro consumer; il lavoro è completato quando la documentazione o l’esempio spiegano chiaramente perché la proprietà è necessaria o meno.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100