Routes

class Routes[F[_]](energyDiffRepository: EnergyDiffRepository[F])(implicit evidence$1: Concurrent[F]) extends Http4sDsl[F]
trait Http4sDsl[F]
trait Http4sDsl2[F, F]
trait Responses[F, F]
trait Statuses
trait RequestDsl
trait Auth
trait Methods
class Object
trait Matchable
class Any

Type members

Inherited classlikes

object as
Inherited from:
Auth

Inherited types

type / = /.type
Inherited from:
RequestDsl
type FlagQueryParamMatcher = FlagQueryParamMatcher
Inherited from:
RequestDsl
type MethodConcat = MethodConcat
Inherited from:
RequestDsl
type OptionalMultiQueryParamDecoderMatcher[T] = OptionalMultiQueryParamDecoderMatcher[T]
Inherited from:
RequestDsl
type OptionalQueryParamDecoderMatcher[T] = OptionalQueryParamDecoderMatcher[T]
Inherited from:
RequestDsl
type OptionalQueryParamMatcher[T] = OptionalQueryParamMatcher[T]
Inherited from:
RequestDsl
type OptionalValidatingQueryParamDecoderMatcher[T] = OptionalValidatingQueryParamDecoderMatcher[T]
Inherited from:
RequestDsl
type Path = Path
Inherited from:
RequestDsl
type QueryParamDecoderMatcher[T] = QueryParamDecoderMatcher[T]
Inherited from:
RequestDsl
type QueryParamDecoderMatcherWithDefault[T] = QueryParamDecoderMatcherWithDefault[T]
Inherited from:
RequestDsl
type QueryParamMatcher[T] = QueryParamMatcher[T]
Inherited from:
RequestDsl
type Root = Path
Inherited from:
RequestDsl
type ValidatingQueryParamDecoderMatcher[T] = ValidatingQueryParamDecoderMatcher[T]
Inherited from:
RequestDsl

Value members

Concrete fields

val routes: HttpRoutes[F]

Inherited fields

val +&: +&.type
Inherited from:
Http4sDsl2
val ->: ->.type
Inherited from:
Http4sDsl2
val /: /.type
Inherited from:
Http4sDsl2
val /:: /:.type
Inherited from:
Http4sDsl2
val :?: :?.type
Inherited from:
Http4sDsl2
val Accepted: Status
Inherited from:
Statuses
val AlreadyReported: Status
Inherited from:
Statuses
val BadGateway: Status
Inherited from:
Statuses
val BadRequest: Status
Inherited from:
Statuses
val CONNECT: Method
Inherited from:
Methods
val Conflict: Status
Inherited from:
Statuses
val Continue: Status
Inherited from:
Statuses
val Created: Status
Inherited from:
Statuses
val DELETE: Method
Inherited from:
Methods
val ExpectationFailed: Status
Inherited from:
Statuses
val FailedDependency: Status
Inherited from:
Statuses
val Forbidden: Status
Inherited from:
Statuses
val Found: Status
Inherited from:
Statuses
val GET: Method
Inherited from:
Methods
val GatewayTimeout: Status
Inherited from:
Statuses
val Gone: Status
Inherited from:
Statuses
val HEAD: Method
Inherited from:
Methods
Inherited from:
Statuses
val IMUsed: Status
Inherited from:
Statuses
Inherited from:
Statuses
val IntVar: IntVar.type
Inherited from:
Http4sDsl2
Inherited from:
Statuses
val LengthRequired: Status
Inherited from:
Statuses
val Locked: Status
Inherited from:
Statuses
val LongVar: LongVar.type
Inherited from:
Http4sDsl2
val LoopDetected: Status
Inherited from:
Statuses
val MethodNotAllowed: Status
Inherited from:
Statuses
val MovedPermanently: Status
Inherited from:
Statuses
val MultiStatus: Status
Inherited from:
Statuses
val MultipleChoices: Status
Inherited from:
Statuses
Inherited from:
Statuses
val NoContent: Status
Inherited from:
Statuses
Inherited from:
Statuses
val NotAcceptable: Status
Inherited from:
Statuses
val NotExtended: Status
Inherited from:
Statuses
val NotFound: Status
Inherited from:
Statuses
val NotImplemented: Status
Inherited from:
Statuses
val NotModified: Status
Inherited from:
Statuses
val OPTIONS: Method
Inherited from:
Methods
val Ok: Status
Inherited from:
Statuses
val PATCH: Method
Inherited from:
Methods
val POST: Method
Inherited from:
Methods
val PUT: Method
Inherited from:
Methods
val PartialContent: Status
Inherited from:
Statuses
val Path: Path.type
Inherited from:
Http4sDsl2
val PayloadTooLarge: Status
Inherited from:
Statuses
val PaymentRequired: Status
Inherited from:
Statuses
val PermanentRedirect: Status
Inherited from:
Statuses
val PreconditionFailed: Status
Inherited from:
Statuses
Inherited from:
Statuses
val Processing: Status
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
val RequestTimeout: Status
Inherited from:
Statuses
val ResetContent: Status
Inherited from:
Statuses
val Root: Path
Inherited from:
Http4sDsl2
val SeeOther: Status
Inherited from:
Statuses
val ServiceUnavailable: Status
Inherited from:
Statuses
val SwitchingProtocols: Status
Inherited from:
Statuses
val TRACE: Method
Inherited from:
Methods
val TemporaryRedirect: Status
Inherited from:
Statuses
val TooManyRequests: Status
Inherited from:
Statuses
val UUIDVar: UUIDVar.type
Inherited from:
Http4sDsl2
val Unauthorized: Status
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
Inherited from:
Statuses
val UpgradeRequired: Status
Inherited from:
Statuses
val UriTooLong: Status
Inherited from:
Statuses
val UseProxy: Status
Inherited from:
Statuses
Inherited from:
Statuses
val liftG: FunctionK[F, F]
Inherited from:
Http4sDsl
val ~: ~.type
Inherited from:
Http4sDsl2
val →: ->.type

Alias for ->.

Alias for ->.

Note: Due to infix operation precedence, → has a lower priority than /. So you have to use parentheses in pattern matching when using this operator.

For example:

 (request.method, Path(request.path)) match {
   case Method.GET → (Root / "test.json") => ...
Inherited from:
Http4sDsl2

Implicits

Implicits

implicit val energyDiffCodec: EntityDecoder[F, EnergyDiff]

Inherited implicits

implicit def http4sAcceptedSyntax(status: Status): AcceptedOps[F, F]
Inherited from:
Responses
implicit def http4sAlreadyReportedSyntax(status: Status): AlreadyReportedOps[F, F]
Inherited from:
Responses
implicit def http4sBadGatewaySyntax(status: Status): BadGatewayOps[F, F]
Inherited from:
Responses
implicit def http4sBadRequestSyntax(status: Status): BadRequestOps[F, F]
Inherited from:
Responses
implicit def http4sConflictSyntax(status: Status): ConflictOps[F, F]
Inherited from:
Responses
implicit def http4sContinueSyntax(status: Status): ContinueOps[F, F]
Inherited from:
Responses
implicit def http4sCreatedSyntax(status: Status): CreatedOps[F, F]
Inherited from:
Responses
implicit def http4sEarlyHintsSyntax(status: Status): EarlyHintsOps[F, F]
Inherited from:
Responses
implicit def http4sExpectationFailedSyntax(status: Status): ExpectationFailedOps[F, F]
Inherited from:
Responses
implicit def http4sFailedDependencySyntax(status: Status): FailedDependencyOps[F, F]
Inherited from:
Responses
implicit def http4sForbiddenSyntax(status: Status): ForbiddenOps[F, F]
Inherited from:
Responses
implicit def http4sFoundSyntax(status: Status): FoundOps[F, F]
Inherited from:
Responses
implicit def http4sGatewayTimeoutSyntax(status: Status): GatewayTimeoutOps[F, F]
Inherited from:
Responses
implicit def http4sGoneSyntax(status: Status): GoneOps[F, F]
Inherited from:
Responses
implicit def http4sHttpVersionNotSupportedSyntax(status: Status): HttpVersionNotSupportedOps[F, F]
Inherited from:
Responses
implicit def http4sIMUsedSyntax(status: Status): IMUsedOps[F, F]
Inherited from:
Responses
implicit def http4sInsufficientStorageSyntax(status: Status): InsufficientStorageOps[F, F]
Inherited from:
Responses
implicit def http4sInternalServerErrorSyntax(status: Status): InternalServerErrorOps[F, F]
Inherited from:
Responses
implicit def http4sLengthRequiredSyntax(status: Status): LengthRequiredOps[F, F]
Inherited from:
Responses
implicit def http4sLockedSyntax(status: Status): LockedOps[F, F]
Inherited from:
Responses
implicit def http4sLoopDetectedSyntax(status: Status): LoopDetectedOps[F, F]
Inherited from:
Responses
implicit def http4sMethodConcatSyntax(methods: MethodConcat): MethodConcatOps
Inherited from:
RequestDsl
implicit def http4sMethodNotAllowedSyntax(status: Status): MethodNotAllowedOps[F, F]
Inherited from:
Responses
implicit def http4sMethodSyntax(method: Method): MethodOps
Inherited from:
RequestDsl
implicit def http4sMisdirectedRequestSyntax(status: Status): MisdirectedRequestOps[F, F]
Inherited from:
Responses
implicit def http4sMovedPermanentlySyntax(status: Status): MovedPermanentlyOps[F, F]
Inherited from:
Responses
implicit def http4sMultiStatusSyntax(status: Status): MultiStatusOps[F, F]
Inherited from:
Responses
implicit def http4sMultipleChoicesSyntax(status: Status): MultipleChoicesOps[F, F]
Inherited from:
Responses
implicit def http4sNetworkAuthenticationRequiredSyntax(status: Status): NetworkAuthenticationRequiredOps[F, F]
Inherited from:
Responses
implicit def http4sNoContentSyntax(status: Status): NoContentOps[F, F]
Inherited from:
Responses
implicit def http4sNonAuthoritativeInformationSyntax(status: Status): NonAuthoritativeInformationOps[F, F]
Inherited from:
Responses
implicit def http4sNotAcceptableSyntax(status: Status): NotAcceptableOps[F, F]
Inherited from:
Responses
implicit def http4sNotExtendedSyntax(status: Status): NotExtendedOps[F, F]
Inherited from:
Responses
implicit def http4sNotFoundSyntax(status: Status): NotFoundOps[F, F]
Inherited from:
Responses
implicit def http4sNotImplementedSyntax(status: Status): NotImplementedOps[F, F]
Inherited from:
Responses
implicit def http4sNotModifiedSyntax(status: Status): NotModifiedOps[F, F]
Inherited from:
Responses
implicit def http4sOkSyntax(status: Status): OkOps[F, F]
Inherited from:
Responses
implicit def http4sPartialContentSyntax(status: Status): PartialContentOps[F, F]
Inherited from:
Responses
implicit def http4sPayloadTooLargeSyntax(status: Status): PayloadTooLargeOps[F, F]
Inherited from:
Responses
implicit def http4sPaymentRequiredSyntax(status: Status): PaymentRequiredOps[F, F]
Inherited from:
Responses
implicit def http4sPermanentRedirectSyntax(status: Status): PermanentRedirectOps[F, F]
Inherited from:
Responses
implicit def http4sPreconditionFailedSyntax(status: Status): PreconditionFailedOps[F, F]
Inherited from:
Responses
implicit def http4sPreconditionRequiredSyntax(status: Status): PreconditionRequiredOps[F, F]
Inherited from:
Responses
implicit def http4sProxyAuthenticationRequiredSyntax(status: Status): ProxyAuthenticationRequiredOps[F, F]
Inherited from:
Responses
implicit def http4sRangeNotSatisfiableSyntax(status: Status): RangeNotSatisfiableOps[F, F]
Inherited from:
Responses
implicit def http4sRequestHeaderFieldsTooLargeSyntax(status: Status): RequestHeaderFieldsTooLargeOps[F, F]
Inherited from:
Responses
implicit def http4sRequestTimeoutSyntax(status: Status): RequestTimeoutOps[F, F]
Inherited from:
Responses
implicit def http4sResetContentSyntax(status: Status): ResetContentOps[F, F]
Inherited from:
Responses
implicit def http4sSeeOtherSyntax(status: Status): SeeOtherOps[F, F]
Inherited from:
Responses
implicit def http4sServiceUnavailableSyntax(status: Status): ServiceUnavailableOps[F, F]
Inherited from:
Responses
implicit def http4sSwitchingProtocolsSyntax(status: Status): SwitchingProtocolsOps[F, F]
Inherited from:
Responses
implicit def http4sTemporaryRedirectSyntax(status: Status): TemporaryRedirectOps[F, F]
Inherited from:
Responses
implicit def http4sTooEarlySyntax(status: Status): TooEarlyOps[F, F]
Inherited from:
Responses
implicit def http4sTooManyRequestsSyntax(status: Status): TooManyRequestsOps[F, F]
Inherited from:
Responses
implicit def http4sUnauthorizedSyntax(status: Status): UnauthorizedOps[F, F]
Inherited from:
Responses
implicit def http4sUnavailableForLegalReasonsSyntax(status: Status): UnavailableForLegalReasonsOps[F, F]
Inherited from:
Responses
implicit def http4sUnprocessableEntitySyntax(status: Status): UnprocessableEntityOps[F, F]
Inherited from:
Responses
implicit def http4sUnsupportedMediaTypeSyntax(status: Status): UnsupportedMediaTypeOps[F, F]
Inherited from:
Responses
implicit def http4sUpgradeRequiredSyntax(status: Status): UpgradeRequiredOps[F, F]
Inherited from:
Responses
implicit def http4sUriTooLongSyntax(status: Status): UriTooLongOps[F, F]
Inherited from:
Responses
implicit def http4sVariantAlsoNegotiatesSyntax(status: Status): VariantAlsoNegotiatesOps[F, F]
Inherited from:
Responses