• Hector Sanjuan's avatar
    Http API: introduced HandledMethods option. · 2fbebbec
    Hector Sanjuan authored
    This Handler option is used it to allow/deny request by their method.
    
    The API is an RPC API so it normally should only work with PUT, but we also
    use a read-only, GET-based partial API that runs with the gateway.
    
    This commit makes the actual allowed (or handled) methods configurable.
    
    A test is added, and test facilities improved to be able to set/modify
    this option.
    2fbebbec
config.go 4.43 KB