HTTP

How to send an HTTP response in chunks? Chunked Transfer Encoding

HTTP provides (RFC 9112) a way for sending several chunks back by a server as a response to the request. Let’s see how to communication looks like. Communication A client sends a normal request, like for example: And a server responds in several chunks like: Response structure Each chunk contains at least two parts:– size …

How to send an HTTP response in chunks? Chunked Transfer Encoding Czytaj dalej »

Briefly on OpenAPI

OpenAPI is a specification for documenting your HTTP based API. Example It describes how both a request and a response should look like. Usually YAML format is used, but there is also support for other formats (for example JSON). How it relates to Swagger? OpenAPI specification was originally developed within Swagger (as Swagger specification) and …

Briefly on OpenAPI Czytaj dalej »

Cookies

Cookies are just HTTP headers. However, special kind of headers which are used to keep information longer on a client side and then send it back to server. The basic flow is that a client asks for a resource, then a server responds with setCookie header and then the client stores given information and use …

Cookies Czytaj dalej »