object Http4sUtils
- Alphabetic
- By Inheritance
- Http4sUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class ServerBlueprint(port: slamdata.Predef.Int, idleTimeout: Duration, svc: HttpService) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
anyAvailablePort: Task[slamdata.Predef.Int]
An available port number.
-
def
anyAvailablePorts[N <: Nat](implicit arg0: ToInt[N]): Task[Sized[slamdata.Predef.Seq[slamdata.Predef.Int], N]]
Available port numbers.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
choosePort(requested: slamdata.Predef.Int): Task[slamdata.Predef.Int]
Returns the requested port if available, or the next available port.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def openBrowser(port: slamdata.Predef.Int): Task[slamdata.Predef.Unit]
- def startServer(blueprint: ServerBlueprint): Task[Server]
-
def
startServerOnAnyPort(blueprint: ServerBlueprint): Task[(Server, slamdata.Predef.Int)]
Start
Serverwith supplied ServerBlueprintStart
Serverwith supplied ServerBlueprint- returns
Server that has been started along with the port on which it was started
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unavailableReason(port: slamdata.Predef.Int): OptionT[Task, slamdata.Predef.String]
Returns why the given port is unavailable or None if it is available.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
waitForUserEnter: Task[slamdata.Predef.Boolean]
Wait for the user to press enter before returning.
Wait for the user to press enter before returning. This is a blocking operation, so the thread will be suspended until it is notified of the user pressing Enter following which the
Taskwill complete. If the standard input stream is ended, which would usually indicate that this application was launched from a script, then this Task will immediately complete with a return value offalse- returns
trueif we waited on user input before returning, false if returning immediately for lack of any possibility of receiving user input