android-components / mozilla.components.tooling.fetch.tests / FetchTestCases

FetchTestCases

abstract class FetchTestCases (source)

Generic test cases for concept-fetch implementations.

We expect any implementation of concept-fetch to pass all test cases here.

Constructors

<init>

FetchTestCases()

Generic test cases for concept-fetch implementations.

Functions

GET (404) with body

fun GET (404) with body(): Unit

GET (200) Overriding default headers

fun GET (200) Overriding default headers(): Unit

GET (200) default headers

fun GET (200) default headers(): Unit

GET (200) duplicated cache control response headers

fun GET (200) duplicated cache control response headers(): Unit

GET (200) gzipped body

fun GET (200) gzipped body(): Unit

GET (200) user agent

fun GET (200) user agent(): Unit

GET (200) with String body

fun GET (200) with String body(): Unit

GET (200) with duplicated cache control request headers

fun GET (200) with duplicated cache control request headers(): Unit

GET (200) with headers

fun GET (200) with headers(): Unit

GET (200) with read timeout

fun GET (200) with read timeout(): Unit

GET (302) follow redirects disabled

fun GET (302) follow redirects disabled(): Unit

GET (302, 200) follow redirects

fun GET (302, 200) follow redirects(): Unit

POST (200) with body

fun POST (200) with body(): Unit

PUT (201) file upload

fun PUT (201) file upload(): Unit

createNewClient

abstract fun createNewClient(): Client

Creates a new Client for running a specific test case with it.