Skip to content

Request handler signature #3

Description

@lucacasonato
  • Request and Response objects from WHATWG Fetch

  • This means that body is ReadableStream from WHATWG Streams

  • The request object should be an extension of Request as IncomingRequest:

    • req.connection
      • .protocolVersion (0.9/1/1.1/2/3)
      • .transport (tcp/unix/udp)
      • .remoteAddr
        • On unix: .path
        • On tcp: .family, .ip, and .port
        • On udp: .family, .ip, and .port
      • .localAddr (same as .remoteAddr)
      • .tls
        • .cipher
        • .peerCertificate
        • .version
        • .sni
        • Possibly other data should be exposed. Needs investigation - what do existing runtimes expose?
  • Lifecycle of request / response data

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions