ポジローぽけっと

昨日より今日、今日より明日を信じて、トライトライ

第二十五回スパルタンプログラミング

何がしたいか?何が問題か?を意識して変なとこでぐだぐだ考えないこと! 30分悩んで分からなかったら、早めにヘルプを出す。

14.11.14, 17は年休。仕事が落ち着いたので、土日はさんでの4連休。 14日(金)は早めに入ってプログラムして、夕飯は太平楽麻婆飯食べた。

やりたいこと

  • safariからのHTTPメッセージのリクエストをlexerでとれるようにする。
  • とったリクエストに対して応答する。

ステータスコードまとめ

RFC7231から抜粋

6.2. Informational 1xx

The 1xx (Informational) class of status code indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.

6.3. Successful 2xx

The 2xx (Successful) class of status code indicates that the client's request was successfully received, understood, and accepted.

6.4. Redirection 3xx

The 3xx (Redirection) class of status code indicates that further action needs to be taken by the user agent in order to fulfill the request.

6.5. Client Error 4xx

The 4xx (Client Error) class of status code indicates that the client seems to have erred. Except when responding to a HEAD request, the server SHOULD send a representation containing an explanation of the error situation, and whether it is a temporary or permanent condition. These status codes are applicable to any request method. User agents SHOULD display any included representation to the user.

6.6. Server Error 5xx

The 5xx (Server Error) class of status code indicates that the server is aware that it has erred or is incapable of performing the requested method. Except when responding to a HEAD request, the server SHOULD send a representation containing an explanation of the error situation, and whether it is a temporary or permanent condition. A user agent SHOULD display any included representation to the user. These response codes are applicable to any request method.

やったこと

14.11.14

14.11.15

  • yylessとstart statusを使って同じ字句を複数回解析できることが分かった。
  • 応答部分を作成するためにステータスコード調査。
  • sanos.cをパクって、自身の環境のディレクトリツリーのリンク表示をブラウザにできるようにした。

14.11.17

  • ディレクトリツリーのリンク表示部作成部分の調査