Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Implement Request/Response.ToString() and use print functions

オープン
#71 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
fsharp
領域
api

調査の方向性

Print.fs と Domain.fs の Request/Response 定義を読み、次に FsiInit.fs を調べて Request.print() と Response.print() がどのように使われているかを理解します。FSI の出力と副作用のない ToString() の動作との望ましい分離を定義します。両方のレコードがデフォルトの ToString() 出力を持ち、FSI 以外のフォーマット処理が request または response のストリームを読み取らなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

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).

?

主要言語
F#
スター
498
フォーク
41
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fsprojects/FsHttp のほかの issue

fsprojects/FsHttp の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。