タグ

HTTPと nodeに関するefclのブックマーク (3)

  • request

    Deprecated! As of Feb 11th 2020, request is fully deprecated. No new changes are expected land. In fact, none have landed for some time. For more information about why request is deprecated and possible alternatives refer to this issue. Request - Simplified HTTP client Super simple to use Request is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirect

    request
    efcl
    efcl 2020/02/12
    Node.js向けのHTTPクライアントである`request`モジュールがDeprecatedとなった。
  • Cookie 概説 - 30歳からのプログラミング

    Cookie とは、HTTP でステートフルなやり取りを実現するために、ブラウザとサーバ間で情報を送受信する仕組みである。 HTTP は来ステートレスなプロトコルである。そのため、同一のユーザーが連続でリクエストを行っても、それぞれ独立したリクエストであり、「同じユーザーからのリクエストである」とサーバが認識することはできない。 これは例えば、ログイン状態の管理で問題となる。ID とパスワードで認証を行っている場合、リクエストの度に ID とパスワードを送信しなければならない。 Cookie を使うことで、このような事態を解決できる。 まず、サーバがブラウザに対して、Cookie としてどのような情報を保存するのか指示する。具体的には、レスポンスヘッダにSet-Cookieフィールドを含め、そこに Cookie として保存させたい情報を設定する。ログイン状態を管理したい場合は、セッション

    Cookie 概説 - 30歳からのプログラミング
    efcl
    efcl 2020/01/21
    ブラウザとexpressを使ったCookieの設定と属性などのCookieの仕組みについての解説記事。 Expires、Max-Age、Domain、Path,Secure属性、HttpOnly属性、SameSite属性についての解説
  • Release v10.0.0 · sindresorhus/got

    We're excited to announce Got 10! 🎉 This release has been in the works for almost a year and has been a major undertaking. Got was fully rewritten in TypeScript, which helped us catch many bugs and will give us more confidence in the codebase going forward. Got is now faster and much more stable. We also fixed a huge amount of bugs. Big thanks to everyone that helped make this release possible.

    Release v10.0.0 · sindresorhus/got
    efcl
    efcl 2019/12/02
    Node.js向けHTTPクライアントのGot 10.0.0リリース。 TypeScriptで書き直されたバージョン。 Node.js 10未満のサポート終了、`query`を`searchParams`にリネーム、`encoding`を`responseType`にリネーム、`json`オプションの変更など。 DNS cacheのサポ
  • 1