Domain Documentation

Enumeration HTTPMethod​InDomain

public enum HTTPMethodInDomain  

HTTPMethod in domain.

The purpose of defining this in the Domain layer is to reduce the dependency on the framework. It's also intended to clarify the HTTPMethod within the project's domain.

Note

Continuing from the namespace is Domain.HTTPMethodInDomain. This may seem verbose. I named it because I didn't want to confuse it with NIOHTTP1.HTTPMethod.

Extra

I'm want hotly for enum subsets features in Swift.😊

Enumeration Cases

get

case get

Same as NIO.HTTPMethod.GET.

put

case put

Same as NIO.HTTPMethod.PUT.

post

case post

Same as NIO.HTTPMethod.POST.

delete

case delete

Same as NIO.HTTPMethod.DELETE.

Properties

raw

public var raw: HTTPMethod  

Convert to HTTPMethod.