Skip to content

HTTP server: start() api to expose incoming request and outgoing response #21

@Aniketh01

Description

@Aniketh01

Current the incoming request to the server and the response spit by the server is written to the output buffer within the start function which looks a bit ugly at the moment and also I don't believe the function would be extendable.

So an ideal API design would be to have:

request, response = server.start().

Thus the returned request and response could be used to print out to the output buffer or any additional tasks could be performed.

Note, we need to return the request and response without interfering with the socket listening for any other clients that try to connect with the server.

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