Skip to content

more detail in HTTP language #2718

@Jxck

Description

@Jxck

Motivation

in http language, request-line / response-status are less tokenized for me.

I would like to make PR if it works.

Description

request line

current request-line

GET /path HTTP/1.1

results in

<span class="token request-line">
    <span class="token property">POST</span>
    /default-endpoint HTTP/1.1
</span>

would like to be

<span class="token request-line">
    <span class="token method">POST</span>
    <span class="token string">/default-endpoint</span>
    <span class="token property">HTTP/1.1</span>
</span>

response status

current response status

HTTP/1.1 200 OK

results in

<span class="token response-status">
    HTTP/1.1
    <span class="token property">200 OK</span>
</span>

would like to be

<span class="token response-status">
    <span class="token property">HTTP/1.1</span>
    <span class="token number">200</span>
    <span class="token string">OK</span>
</span>

class name are wip, ping me if other choice fit's here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions