Skip to content

Request handler signature #3

@lucacasonato

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

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