Ramin Ahmadi | Personal website of Ramin Ahmadi

Archive

What is HTTP method OPTIONS?

The HTTP OPTIONS method is a type of HTTP call that explains what are the options for a target resource such as API endpoint. a client can use target resource’s URL to use OPTIONS method or use * to target the entire server. public GetOtaAdaptor(): Promise<Model.OtaAdapter> { ...

Creating custom element with Angular 6

Angular elements are framework agnostic custom HTML elements that are made out of Angular components. This is the latest, and in may I add the coolest, Angular 6 feature that allows maximum re-usability of components as they can be used in a wide variety of frameworks and environments. But what is ...

Web sockets and how they work

Foundation of web as we all know is based on Hypertext Transfer Protocol (HTTP) which uses request-response protocol. This, in a nutshell, means a web browser submits an HTTP request message to server and server which, holds resources, returns appropriate response message. However, servers weren’t allowed to send messages to ...