Thanks to visit codestin.com
Credit goes to github.com

Skip to content

HTTP1Fast matcher omits PATCH #99

@yvrhdn

Description

@yvrhdn

Hi, cmux has been working great for us. Recently we added a PATCH endpoint to our application and were surprised the HTTP1Fast matcher doesn't automatically match on PATCH.
Is there a particular reason for not including PATCH or is this an oversight?

All other methods are in there except PATCH and OPTIONS.

cmux/matchers.go

Lines 46 to 55 in 5ec6847

var defaultHTTPMethods = []string{
"OPTIONS",
"GET",
"HEAD",
"POST",
"PUT",
"DELETE",
"TRACE",
"CONNECT",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions