trait Urls extends algebra.Urls with StatusCodes
algebra.Urls interpreter that decodes and encodes URLs.
- Self Type
- EndpointsWithCustomErrors
- Source
- Urls.scala
- Alphabetic
- By Inheritance
- Urls
- StatusCodes
- StatusCodes
- Urls
- PartialInvariantFunctorSyntax
- InvariantFunctorSyntax
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit class InvariantFunctorSyntax[A, F[_]] extends AnyRef
- Definition Classes
- InvariantFunctorSyntax
- implicit class PartialInvariantFunctorSyntax[A, F[_]] extends AnyRef
- Definition Classes
- PartialInvariantFunctorSyntax
- trait Path[A] extends EndpointsWithCustomErrors.Url[A]
- implicit class PathOps[A] extends AnyRef
- Definition Classes
- Urls
- trait QueryString[T] extends AnyRef
- trait QueryStringParam[T] extends AnyRef
Given a parameter name and a query string content, returns a decoded parameter value of type
T
, orInvalid
if decoding failed - implicit class QueryStringSyntax[A] extends AnyRef
- Definition Classes
- Urls
- trait Segment[A] extends AnyRef
- type StatusCode = akka.http.scaladsl.model.StatusCode
- Definition Classes
- StatusCodes → StatusCodes
- trait Url[A] extends AnyRef
- type WithDefault[A] = A
- Definition Classes
- Urls → Urls
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Urls, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def Accepted: Success
- Definition Classes
- StatusCodes → StatusCodes
- def AlreadyReported: Success
- Definition Classes
- StatusCodes → StatusCodes
- def BadRequest: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def Conflict: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def Created: Success
- Definition Classes
- StatusCodes → StatusCodes
- def ExpectationFailed: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def FailedDependency: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def Forbidden: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def Gone: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def IMUsed: Success
- Definition Classes
- StatusCodes → StatusCodes
- def InternalServerError: ServerError
- Definition Classes
- StatusCodes → StatusCodes
- def LengthRequired: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def Locked: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def MethodNotAllowed: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def MisdirectedRequest: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def MultiStatus: Success
- Definition Classes
- StatusCodes → StatusCodes
- def NoContent: Success
- Definition Classes
- StatusCodes → StatusCodes
- def NonAuthoritativeInformation: Success
- Definition Classes
- StatusCodes → StatusCodes
- def NotAcceptable: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def NotFound: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def NotImplemented: ServerError
- Definition Classes
- StatusCodes → StatusCodes
- def NotModified: Redirection
- Definition Classes
- StatusCodes → StatusCodes
- def OK: Success
- Definition Classes
- StatusCodes → StatusCodes
- def PartialContent: Success
- Definition Classes
- StatusCodes → StatusCodes
- def PayloadTooLarge: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def PaymentRequired: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def PermanentRedirect: Redirection
- Definition Classes
- StatusCodes → StatusCodes
- def PreconditionFailed: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def PreconditionRequired: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def ProxyAuthenticationRequired: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def RangeNotSatisfiable: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def RequestHeaderFieldsTooLarge: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def RequestTimeout: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def ResetContent: Success
- Definition Classes
- StatusCodes → StatusCodes
- def TemporaryRedirect: Redirection
- Definition Classes
- StatusCodes → StatusCodes
- def TooEarly: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def TooManyRequests: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def Unauthorized: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def UnavailableForLegalReasons: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def UnprocessableEntity: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def UnsupportedMediaType: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def UpgradeRequired: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- def UriTooLong: ClientError
- Definition Classes
- StatusCodes → StatusCodes
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def booleanQueryString: EndpointsWithCustomErrors.QueryStringParam[Boolean]
- Definition Classes
- Urls
- def chainPaths[A, B](first: EndpointsWithCustomErrors.Path[A], second: EndpointsWithCustomErrors.Path[B])(implicit tupler: Tupler[A, B]): EndpointsWithCustomErrors.Path[Out]
- Definition Classes
- Urls → Urls
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def combineQueryStrings[A, B](first: EndpointsWithCustomErrors.QueryString[A], second: EndpointsWithCustomErrors.QueryString[B])(implicit tupler: Tupler[A, B]): EndpointsWithCustomErrors.QueryString[Out]
- Definition Classes
- Urls → Urls
- def convToDirective1(directive: Directive0): Directive1[Unit]
- Attributes
- protected
- implicit def doubleQueryString: EndpointsWithCustomErrors.QueryStringParam[Double]
- Definition Classes
- Urls
- implicit def doubleSegment: EndpointsWithCustomErrors.Segment[Double]
- Definition Classes
- Urls
- def ensuring(cond: (Urls) => Boolean, msg: => Any): Urls
- def ensuring(cond: (Urls) => Boolean): Urls
- def ensuring(cond: Boolean, msg: => Any): Urls
- def ensuring(cond: Boolean): Urls
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def handleClientErrors(invalid: Invalid): StandardRoute
This method is called by endpoints4s when decoding a request failed.
This method is called by endpoints4s when decoding a request failed.
The provided implementation calls
clientErrorsResponse
to complete with a response containing the errors.This method can be overridden to customize the error reporting logic.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit def intQueryString: EndpointsWithCustomErrors.QueryStringParam[Int]
- Definition Classes
- Urls
- implicit def intSegment: EndpointsWithCustomErrors.Segment[Int]
- Definition Classes
- Urls
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def joinDirectives[T1, T2](dir1: Directive1[T1], dir2: Directive1[T2])(implicit tupler: Tupler[T1, T2]): Directive1[Out]
Simpler alternative to
Directive.&()
methodSimpler alternative to
Directive.&()
method- Attributes
- protected
- implicit def longQueryString: EndpointsWithCustomErrors.QueryStringParam[Long]
- Definition Classes
- Urls
- implicit def longSegment: EndpointsWithCustomErrors.Segment[Long]
- Definition Classes
- Urls
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def optQsWithDefault[A](name: String, default: A, docs: Documentation = None)(implicit value: EndpointsWithCustomErrors.QueryStringParam[A]): EndpointsWithCustomErrors.QueryString[EndpointsWithCustomErrors.WithDefault[A]]
- Definition Classes
- Urls → Urls
- implicit def optionalQueryStringParam[A](implicit param: EndpointsWithCustomErrors.QueryStringParam[A]): EndpointsWithCustomErrors.QueryStringParam[Option[A]]
- Definition Classes
- Urls → Urls
- val path: EndpointsWithCustomErrors.Path[Unit]
- Definition Classes
- Urls
- implicit lazy val pathPartialInvariantFunctor: PartialInvariantFunctor[EndpointsWithCustomErrors.Path]
- Definition Classes
- Urls → Urls
- def qs[A](name: String, docs: Documentation)(implicit param: EndpointsWithCustomErrors.QueryStringParam[A]): EndpointsWithCustomErrors.QueryString[A]
- Definition Classes
- Urls → Urls
- implicit lazy val queryStringParamPartialInvariantFunctor: PartialInvariantFunctor[EndpointsWithCustomErrors.QueryStringParam]
- Definition Classes
- Urls → Urls
- implicit lazy val queryStringPartialInvariantFunctor: PartialInvariantFunctor[EndpointsWithCustomErrors.QueryString]
- Definition Classes
- Urls → Urls
- def remainingSegments(name: String, docs: Documentation): EndpointsWithCustomErrors.Path[String]
- Definition Classes
- Urls → Urls
- implicit def repeatedQueryStringParam[A, CC[X] <: Iterable[X]](implicit param: EndpointsWithCustomErrors.QueryStringParam[A], factory: Factory[A, CC[A]]): EndpointsWithCustomErrors.QueryStringParam[CC[A]]
- Definition Classes
- Urls → Urls
- def segment[A](name: String, docs: Documentation)(implicit s: EndpointsWithCustomErrors.Segment[A]): EndpointsWithCustomErrors.Path[A]
- Definition Classes
- Urls → Urls
- implicit lazy val segmentPartialInvariantFunctor: PartialInvariantFunctor[EndpointsWithCustomErrors.Segment]
- Definition Classes
- Urls → Urls
- def staticPathSegment(segment: String): EndpointsWithCustomErrors.Path[Unit]
- Definition Classes
- Urls → Urls
- implicit lazy val stringQueryString: EndpointsWithCustomErrors.QueryStringParam[String]
- Definition Classes
- Urls → Urls
- implicit def stringSegment: EndpointsWithCustomErrors.Segment[String]
- Definition Classes
- Urls → Urls
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit lazy val urlPartialInvariantFunctor: PartialInvariantFunctor[EndpointsWithCustomErrors.Url]
- Definition Classes
- Urls → Urls
- def urlWithQueryString[A, B](path: EndpointsWithCustomErrors.Path[A], qs: EndpointsWithCustomErrors.QueryString[B])(implicit tupler: Tupler[A, B]): EndpointsWithCustomErrors.Url[Out]
- Definition Classes
- Urls → Urls
- implicit def uuidQueryString: EndpointsWithCustomErrors.QueryStringParam[UUID]
- Definition Classes
- Urls
- implicit def uuidSegment: EndpointsWithCustomErrors.Segment[UUID]
- Definition Classes
- Urls
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Urls toStringFormat[Urls] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (Urls, B)
- Implicit
- This member is added by an implicit conversion from Urls toArrowAssoc[Urls] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.