Effect CommunityEC
Effect Community2mo ago
2 replies
mabasic

How do I get protocol (http/https) from http request in effect http api server?

when I inspect the entire object I get this:

{
  request: {
    _id: "@effect/platform/HttpServerRequest",
    method: "GET",
    url: "/magic",
    headers: {
      accept: "*/*",
      "accept-encoding": "gzip",
      host: "127.0.0.1:3000",
      "user-agent": "nushell"
    },
    remoteAddress: { _id: "Option", _tag: "Some", value: "127.0.0.1" }
  }
}
Was this page helpful?