Skip to content
This repository was archived by the owner on Aug 24, 2023. It is now read-only.
This repository was archived by the owner on Aug 24, 2023. It is now read-only.

Create contentType dependent closures for type-specific parsing. #3

@javaConductor

Description

@javaConductor

Its all about content negotiation - dealing with the Accept header properly.

Something like:

gserv.http{
get("/"){
contentType(["application/json", "text/json"]){
///parse JSON
}
contentType(["application/xml", "text/xml"]){
///parse XML
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions