Implement Request/Response.ToString() and use print functions
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- fsharp
- Ambito
- api
Direzione di ricerca
Leggere Print.fs e le definizioni di Request/Response in Domain.fs, quindi esaminare FsiInit.fs per capire come vengono usati Request.print() e Response.print(). Definire la separazione desiderata tra la stampa FSI e il comportamento di ToString() privo di effetti collaterali; il lavoro è completato quando entrambi i record hanno un output ToString() predefinito, mentre la formattazione non-FSI non legge gli stream di request o response.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
print functions for the FsHttp representation of Request and Response records are currently implemented in Print.fs, which export Request.print () and Response.print (). Those functions are only used when FsHttp is used in FSI (see FsiInit.fs).
It would be nice (e.g. for debugging purpose or in non-FSI environments) having a ToString() overload per-default in Response and Request that output similar information as when using print(). Since the print function implementation is long, it should not "pollute" the definition of Request and Response (which are defined in Domain.fs) and stay separated from definitions in Domain.fs.
What could be a good way of bringing together
- Print functions reside in a separate module
- ToString implementation for Response and Request generalls using the ones in Print module
- Slightly different ToString / print implementations for non-FSI and FSI, which is: In non-FSI environments, any
ToString()implementation should not cause side effects (e.g. like reading from Request/Response streams).
?
- Lingua principale
- F#
- Stelle
- 498
- Fork
- 41
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fsprojects/FsHttp
-
automation enhancement repo-assist
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
fsprojects/FsHttp#215 ·
-
Repo Assist? Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
fsprojects/FsHttp#212 · 3 commenti ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
fsprojects/FsHttp#206 · 4 commenti · 1 reazione ·
-
Port exhaustion regression Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
fsprojects/FsHttp#198 · 4 commenti ·
-
question
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
fsprojects/FsHttp#197 ·
Tutte le issue di fsprojects/FsHttp
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
speaches-ai/speaches#678 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Apertabug ecr
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100