Skip to content

Could we make it return all the connect info? #627

@skyyangyun

Description

@skyyangyun

https://github.com/oakserver/oak/blame/aad49081dd7dca6781ec3cfcd7af395fc3884547/http_server_native_request.ts#L80

get remoteAddr(): string | undefined {
    return (this.#conn?.remoteAddr as Deno.NetAddr)?.hostname;
  }

I want know remote connect port. But I find oak just return native request hostname. Can we let it return whole Deno.NetAddr?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions