HttpRequestOrResponse

Contains either an HttpRequest or an HttpResponse.

Constructors

Link copied to clipboard
Create a variant from HttpRequest.
Link copied to clipboard
Create a variant from HttpResponse.

Types

Link copied to clipboard
enum Type
Type information of the variant's content

Functions

Link copied to clipboard
Get content with type HttpRequest from the variant.
Link copied to clipboard
Get content with type HttpResponse from the variant.
Link copied to clipboard
Get type info enum of the variant.
Link copied to clipboard
Check if the content of variant has type HttpRequest.
Link copied to clipboard
Check if the content of variant has type HttpResponse.
Link copied to clipboard
open fun toString(): String
Get a string representation of the value contained in the variant.
Link copied to clipboard
Create a variant from HttpRequest.
Create a variant from HttpResponse.